code: def close(self):
          
          if not self.closed:
              self.closed = True
              retval = self.f.close()
              if self.base_mode != "r":
                  self.__size = self.fs.get_path_info(self.name)["size"]
              return retval
docs: Close the file.