code: def _testNullary(self, op, expected):
      with self.session() as session:
          with self.test_scope():
              output = op()
          result = session.run(output)
          self.assertAllClose(result, expected, rtol=1e-3)
  
file_path: tensorflow/tensorflow/compiler/tests/nullary_ops_test.py
imports: import numpy
  from tensorflow.compiler.tests import xla_test
  from tensorflow.python.framework import constant_op
  from tensorflow.python.ops import control_flow_ops
  from tensorflow.python.platform import googletest
label_desc: Use image node_id 1 for calling the NullaryOpsTest obj's underlying member method code with example usage: obj._testNullary(op, expected) without return types