code: def _separate_substructures(path):
      """Returns a list of subpaths, each representing substructures the glyph."""
      substructures = []
      curr = []
      for cmd in path:
          if cmd[0] in "mM" and curr:
              substructures.append(curr)
              curr = []
          curr.append(cmd)
      if curr:
          substructures.append(curr)
      return substructures
  
imports: import io
  import numpy
  from PIL import Image
  from six.moves import zip_longest
  from skimage import draw
  import tensorflow.compat.v1
label_desc: Use image node_id 15 for calling a global function with example usage: _separate_substructures(path) and returns: substructures