code: def op_record(
      name,
      nargs,
      dtypes,
      shapes,
      rng_factory,
      diff_modes,
      test_name=None,
      check_dtypes=True,
      tolerance=None,
      inexact=False,
      kwargs=None,
  ):
      test_name = test_name or name
      return OpRecord(
          name,
          nargs,
          dtypes,
          shapes,
          rng_factory,
          diff_modes,
          test_name,
          check_dtypes,
          tolerance,
          inexact,
          kwargs,
      )
  
imports: import collections
  from functools import partial
  import itertools
  import unittest
  from absl.testing import absltest
  from absl.testing import parameterized
  import numpy
  import jax
  from jax import numpy
  from jax._src import config
  from jax._src import dtypes
  from jax._src import test_util
  from jax._src.util import NumpyComplexWarning
label_desc: Use image node_id 5 for calling a global function with example usage: op_record(name, nargs, dtypes, shapes, rng_factory, diff_modes, test_name, check_dtypes, tolerance, inexact, kwargs) and returns: OpRecord