def write(self, f, s):
        """
        Write method.

        Parameters
        ----------
        f : string
            Path to the state file.
        s : dictionary
            Dict containing this PyBot's current state.
        """
        if os.path.exists(f):
            logging.info("Overwriting %s." % f)
        else:
            logging.info("Creating %s." * f)
        fp = open(f, "w")
        pickle.dump(s, fp)
        fp.close()
dataset/ETHPy150Open magsol/pybot/pybot/storage.py/PickleStorage.write/operator `%` -> `*`