code: def fs(request, s3_fs, az_fs, az_dsn_fs, https_fs, gcs_fs, hdfs_fs):
      path_to, read, write, mkdirs, join, internal = [None] * NUM_ATR_FS
      test_fs_uri = request.param
      real_uri = test_fs_uri
      should_skip(test_fs_uri, check_only=False)
  
      if test_fs_uri == S3_URI:
          path_to, read, write, mkdirs, join, internal = s3_fs
      elif test_fs_uri == AZ_URI:
          path_to, read, write, mkdirs, join, internal = az_fs
      elif test_fs_uri == AZ_DSN_URI:
          real_uri = AZ_URI
          path_to, read, write, mkdirs, join, internal = az_dsn_fs
      elif test_fs_uri == HTTPS_URI:
          path_to, read, write, mkdirs, join, internal = https_fs
      elif test_fs_uri == GCS_URI:
          path_to, read, write, mkdirs, join, internal = gcs_fs
      elif test_fs_uri == HDFS_URI:
          path_to, read, write, mkdirs, join, internal = hdfs_fs
  
      path_to_rand = None
      test_patchs = request.getfixturevalue("patchs")
      if (test_fs_uri, test_patchs) in fs.path_to_rand_cache:
          path_to_rand = fs.path_to_rand_cache[
              (test_fs_uri, test_patchs)
          ]
      else:
          path_to_rand = functools.partial(
              path_to, str(random.getrandbits(32))
          )
          mkdirs(path_to_rand(""))
          fs.path_to_rand_cache[
              (test_fs_uri, test_patchs)
          ] = path_to_rand
      yield real_uri, path_to_rand, read, write, mkdirs, join, internal
  
imports: import functools
  import os
  import posixpath
  import random
  import socket
  import sys
  import time
  from urllib.parse import urlparse
  import pytest
  import tensorflow
  import tensorflow_io
label_desc: Use image node_id 10 for calling a global function with example usage: fs(request, s3_fs, az_fs, az_dsn_fs, https_fs, gcs_fs, hdfs_fs) without return types