code: def test_all_shape_methods_defined_by_the_one_method_shape(self):
      with self.cached_session():
          shape = (1, 2, 3, 4)
          operator = LinearOperatorShape(shape)
  
          self.assertAllEqual(
              shape, self.evaluate(operator.shape_tensor())
          )
          self.assertAllEqual(
              4, self.evaluate(operator.tensor_rank_tensor())
          )
          self.assertAllEqual(
              (1, 2), self.evaluate(operator.batch_shape_tensor())
          )
          self.assertAllEqual(
              4, self.evaluate(operator.domain_dimension_tensor())
          )
          self.assertAllEqual(
              3, self.evaluate(operator.range_dimension_tensor())
          )
  
imports: import numpy
  from tensorflow.python.eager import context
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import tensor_shape
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import linalg_ops
  from tensorflow.python.ops import math_ops
  from tensorflow.python.ops.linalg import linalg
  from tensorflow.python.ops.parallel_for import control_flow_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 2 for calling the LinearOperatorTest obj's underlying member method code with example usage: obj.test_all_shape_methods_defined_by_the_one_method_shape() without return types