code: def _getArrayShapes(self, tensors):
      dims = []
      for tensor in tensors:
          dim_tensor = []
          for dim in tensor.shape:
              if isinstance(dim, tensor_shape.Dimension):
                  dim_tensor.append(dim.value)
              else:
                  dim_tensor.append(dim)
          dims.append(dim_tensor)
      return dims
  
imports: import os
  from tensorflow.lite.python import convert_saved_model
  from tensorflow.python.client import session
  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.platform import test
  from tensorflow.python.saved_model import saved_model
  from tensorflow.python.saved_model import signature_constants
  from tensorflow.python.saved_model import tag_constants
label_desc: Use image node_id 4 for calling the FreezeSavedModelTest obj's underlying member method code with example usage: obj._getArrayShapes(tensors) and returns: dims