code: def test_prim(self, harness: test_harnesses.Harness):
      if (
          jtu.device_under_test() == "gpu"
          and _known_failures_gpu.search(harness.fullname)
      ):
          self.skipTest("failure to be investigated")
  
      if harness.params.get("enable_xla", False):
          self.skipTest("enable_xla=False is not relevant")
  
      func_jax = harness.dyn_fun
      args = harness.dyn_args_maker(self.rng())
  
      unimplemented_platforms: set[str] = set()
      for l in harness.jax_unimplemented:
          if l.filter(dtype=harness.dtype):
              unimplemented_platforms = unimplemented_platforms.union(
                  l.devices
              )
      if _skip_cuda_lowering_unless_have_gpus.search(
          harness.fullname
      ) and all(d.platform != "gpu" for d in self.devices):
          unimplemented_platforms.add("gpu")
  
      logging.info(
          "Harness is not implemented on %s", unimplemented_platforms
      )
  
      # Tolerances.
      tol = None
      if (
          "conv_general_dilated" in harness.fullname
          and harness.dtype in [np.float32]
      ):
          tol = 1e-4
  
      self.export_and_compare_to_native(
          func_jax,
          *args,
          unimplemented_platforms=unimplemented_platforms,
          tol=tol,
      )
  
file_path: jax/tests/export_harnesses_multi_platform_test.py
imports: from __future__ import annotations
  import math
  import re
  from typing import Callable
  from absl import logging
  from absl.testing import absltest
  import numpy
  import jax
  from jax import lax
  from jax._src import test_util
  from jax.experimental import export
  from jax._src.internal_test_util import test_harnesses
label_desc: Use image node_id 2 for calling the PrimitiveTest obj's underlying member method code with example usage: obj.test_prim(harness) without return types