class_docstr: Tests for `static_or_dynamic_shape` method.
class_docstr_tok: ["Tests","for","`","static_or_dynamic_shape","`","method","."]
code: def test_static_or_dynamic_shape_raises(self, bad_input):
      with self.assertRaises(TypeError):
          py_utils.static_or_dynamic_shape(bad_input)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import collections
  from absl.testing import parameterized
  import numpy
  import tensorflow
  from tensorflow_model_optimization.python.core.internal.tensor_encoding.utils import py_utils
label_desc: Use image node_id 2 for calling the StaticOrDynamicShapeTest obj's underlying member method code with example usage: obj.test_static_or_dynamic_shape_raises(bad_input) without return types