code: def _test_match(self, case, seed):
      # Stateless ops should be the same as stateful ops on the first call
      # after seed scrambling.
      key = 0x3EC8F720, 0x02461E29
      preseed = invert_philox(key, (seed[0], 0, seed[1], 0)).astype(
          np.uint64
      )
      preseed = preseed[::2] | preseed[1::2] << 32
      with ops.device(get_device().name):
          _, stateless_op, stateful_op = case
          random_seed.set_random_seed(seed[0])
          stateful = stateful_op(seed=seed[1])
          pure = stateless_op(seed=preseed)
          self.assertAllEqual(stateful, pure)
  
imports: import functools
  from absl.testing import parameterized
  import numpy
  from tensorflow.python.compat import compat
  from tensorflow.python.eager import context
  from tensorflow.python.eager import def_function
  from tensorflow.python.framework import config
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import random_seed
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import array_ops_stack
  from tensorflow.python.ops import gen_stateless_random_ops_v2
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops import random_ops
  from tensorflow.python.ops import stateless_random_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling the StatelessOpsTest obj's underlying member method code with example usage: obj._test_match(case, seed) without return types