code: def test_prefer_static_shape(self, x, expected_shape):
      shape = tff.utils.get_shape(x)
      self.assertAllEqual(shape.as_list(), expected_shape)
  
file_path: tf-quant-finance/tf_quant_finance/utils/shape_utils_test.py
imports: from absl.testing import parameterized
  import numpy
  import tensorflow.compat.v2
  import tf_quant_finance
  from tensorflow.python.framework import test_util
label_desc: Use image node_id 1 for calling the ShapeUtilsTest obj's underlying member method code with example usage: obj.test_prefer_static_shape(x, expected_shape) without return types