code: def path_eq(a, b):
      # NOTE: ".resolve()" does not work properly for paths other than
      # local filesystem paths. For example, for S3, it turns "<s3_bucket>/foo"
      # into "<workdir>/<s3_bucket>/foo". But for the purpose of this function,
      # it works fine as well as both paths are resolved in the same way.
      return Path(a).resolve() == Path(b).resolve()
  
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 2 for calling a global function with example usage: path_eq(a, b) and returns: unknown