code: def _custom_fs(uri):
      parsed_uri = urllib.parse.urlparse(uri)
      return pyarrow.fs.FileSystem.from_uri(parsed_uri.path)
  
imports: import os
  import sys
  import subprocess
  import urllib
  from pathlib import Path
  from packaging.version import parse
  import pyarrow.fs
  import pytest
  import ray
  import ray._private.storage
  from ray._private.test_utils import simulate_storage
  from ray._private.utils import _add_creatable_buckets_param_if_s3_uri, _get_pyarrow_version
  from ray.tests.conftest import *
label_desc: Use image node_id 1 for calling a global function with example usage: _custom_fs(uri) and returns: pyarrow