code: def _flat_shapes(dataset):
      return [
          ts.as_list()
          for ts in nest.flatten(
              dataset_ops.get_legacy_output_shapes(dataset)
          )
      ]
  
imports: from absl.testing import parameterized
  from tensorflow.python.data.kernel_tests import checkpoint_test_base
  from tensorflow.python.data.kernel_tests import test_base
  from tensorflow.python.data.ops import dataset_ops
  from tensorflow.python.data.util import nest
  from tensorflow.python.framework import combinations
  from tensorflow.python.ops.ragged import ragged_tensor
  from tensorflow.python.platform import test
label_desc: Use image node_id 1 for calling a global function with example usage: _flat_shapes(dataset) and returns: unknown