docstr: Sets path to file.
  
  Parameters
  ----------
  path : str
      Path to file
  read_as : str
      How to interpret the file
  
  Notes
  -----
  See :class:`ReadAs <sparknlp.common.ReadAs>` for reading options.
docstr_tok: ["Sets","path","to","file",".","Parameters","--","--","--","--","--","path",":","str","Path","to","file","read_as",":","str","How","to","interpret","the","file","Notes","--","--","-","See",":","class",":","`","ReadAs","<","sparknlp.common.ReadAs",">","`","for","reading","options","."]
code: def setStoragePath(self, path, read_as):
      """Sets path to file.
  
      Parameters
      ----------
      path : str
          Path to file
      read_as : str
          How to interpret the file
  
      Notes
      -----
      See :class:`ReadAs <sparknlp.common.ReadAs>` for reading options.
      """
      return self._set(storagePath=ExternalResource(path, read_as, {}))
  
imports: from pyspark.ml.param import Param, Params, TypeConverters
  from sparknlp.common.utils import ExternalResource
  from sparknlp.common.properties import HasCaseSensitiveProperties
  import sparknlp.internal
label_desc: Use image node_id 1 for calling the HasStorage obj's underlying member method code with example usage: obj.setStoragePath(path, read_as) and returns: self