code: def open_file(
      path: path_type,
      mode: str = "rb",
      compression: str = None,
      storage_options: Dict = None,
  ):
      fs = get_fs(path, storage_options)
      file = fs.open(path, mode=mode)
  
      if compression is not None:
          file = compress(file, compression)
  
      return file
  
file_path: mars/mars/lib/filesystem/core.py
imports: import glob
  import os
  from typing import Dict, List
  from urllib.parse import urlparse
  from ..compression import compress
  from .base import path_type, FileSystem
  from .local import LocalFileSystem
  from .oss import OSSFileSystem
label_desc: Use image node_id 5 for calling a global function with example usage: open_file(path, mode, compression, storage_options) and returns: file