code: def InstantiateTests(globals_dict, backend_fn, test_prefix="", **kw):
      # Avoid creating a new backend per test (this causes GPU OOM, and is probably
      # inefficient).
      backend_fn = functools.lru_cache(maxsize=None)(backend_fn)
      for klass in TestFactory(backend_fn, **kw):
          test = type(test_prefix + klass.__name__, (klass,), {})
          # Clean up the qualified names of the tests to not include the test factory.
          test.__qualname__ = test.__name__
          globals_dict[test.__name__] = test
  
file_path: tensorflow/third_party/xla/xla/python/xla_client_test.py
imports: import collections
  import functools
  import itertools
  import re
  import threading
  import traceback
  from typing import Sequence
  import unittest
  from absl import flags
  from absl import logging
  from absl.testing import absltest
  from absl.testing import parameterized
  import numpy
  from xla.python import xla_client
label_desc: Use image node_id 5 for calling a global function with example usage: InstantiateTests(globals_dict, backend_fn, test_prefix) without return types