code: def to_list(self, allow_symbolic=False):
      if not allow_symbolic and self.has_symbolic:
          return None
      return self.symbolic_shape
  
imports: from enum import Enum
  from typing import Optional
  import numpy
  from coremltools.converters.mil.mil import types
  from coremltools.converters.mil.mil.types.symbolic import is_symbolic
  from coremltools.converters.mil.mil.types.type_mapping import is_builtin, numpy_type_to_builtin_type
label_desc: Use image node_id 5 for calling the Shape obj's underlying member method code with example usage: obj.to_list(allow_symbolic) and returns: self, None