code: def setUp(self):
      super(InteropTest, self).setUp()
      physical_devices = tf.config.list_physical_devices("CPU")
      configs = tf.config.get_logical_device_configuration(
          physical_devices[0]
      )
      if configs is None:
          logical_devices = [
              tf.config.LogicalDeviceConfiguration() for _ in range(3)
          ]
          tf.config.set_logical_device_configuration(
              physical_devices[0], logical_devices
          )
  
imports: import numpy
  import tensorflow.compat.v2
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops.numpy_ops import np_math_ops
label_desc: Use image node_id 1 for calling the InteropTest obj's underlying member method code with example usage: obj.setUp() without return types