original_docstring: Convert input file to a text file
  
          Parameters
          ----------
          fhandler : `fsspec.core.OpenFile`
              a file handler returned by `fsspec`
          dst_path: str
              local folder or cloud storage prefix to save converted text files
          fname: str, optional
              filename for converted output, relative to dirname or prefix, by default None
          storage_options: dict, optional
              storage options for cloud storage
  
          Returns
          -------
          str
              path to saved output
          
docstring: Convert input file to a text file
  Parameters
  
  fhandler : `fsspec.core.OpenFile`
  a file handler returned by `fsspec`
  dst_path: str
  local folder or cloud storage prefix to save converted text files
  fname: str, optional
  filename for converted output, relative to dirname or prefix, by default None
  storage_options: dict, optional
  storage options for cloud storage
  
  Returns
  
  str
  path to saved output
docstring_tokens: Convert input file to a text file Parameters fhandler : ` fsspec . core . OpenFile ` a file handler returned by ` fsspec ` dst_path : str local folder or cloud storage prefix to save converted text files fname : str optional filename for converted output relative to dirname or prefix by default None storage_options : dict optional storage options for cloud storage Returns str path to saved output
code: def convert_to_text(
          self,
          fhandler: OpenFile,
          dst_path: str,
          fname: str = None,
          storage_options: Dict = None,
      ) -> str:
          """Convert input file to a text file
  
          Parameters
          ----------
          fhandler : `fsspec.core.OpenFile`
              a file handler returned by `fsspec`
          dst_path: str
              local folder or cloud storage prefix to save converted text files
          fname: str, optional
              filename for converted output, relative to dirname or prefix, by default None
          storage_options: dict, optional
              storage options for cloud storage
  
          Returns
          -------
          str
              path to saved output
          """
          dest = self._validate_dest(fhandler.path, dst_path, fname)
          storage_options = {} if storage_options is None else storage_options
          with fsspec.open(dest, mode="wb", **storage_options) as fout:
              with fhandler as fin:
                  fout.write(fin.read())
          return dest
code_tokens: def convert_to_text ( self , fhandler : OpenFile , dst_path : str , fname : str = None , storage_options : Dict = None , ) -> str : dest = self . _validate_dest ( fhandler . path , dst_path , fname ) storage_options = { } if storage_options is None else storage_options with fsspec . open ( dest , mode = "wb" , ** storage_options ) as fout : with fhandler as fin : fout . write ( fin . read ( ) ) return dest
short_docstring: Convert input file to a text file
  Parameters
short_docstring_tokens: Convert input file to a text file Parameters
comment: """Convert input file to a text file
  
          Parameters
          ----------
          fhandler : `fsspec.core.OpenFile`
              a file handler returned by `fsspec`
          dst_path: str
              local folder or cloud storage prefix to save converted text files
          fname: str, optional
              filename for converted output, relative to dirname or prefix, by default None
          storage_options: dict, optional
              storage options for cloud storage
  
          Returns
          -------
          str
              path to saved output
          """