code: def open(hdfs_path, mode="r", buff_size=0, replication=0, blocksize=0,
           user=None, encoding=None, errors=None):
      
      host, port, path_ = path.split(hdfs_path, user)
      fs = hdfs(host, port, user)
      return fs.open_file(path_, mode, buff_size, replication, blocksize,
                          encoding, errors)
docs: Open a file, returning an :class:`~.file.hdfs_file` object.
  
      ``hdfs_path`` and ``user`` are passed to :func:`~path.split`,
      while the other args are passed to the :class:`~.file.hdfs_file`
      constructor.