code: def toMultiShape(shape):
      if any(isinstance(i, list) for i in shape):  # multi shape
          return shape
      elif any(isinstance(i, tuple) for i in shape):
          return [list(s) for s in shape]
      elif isinstance(shape, tuple):
          return [list(shape)]
      else:
          return [shape]
  
imports: import glob
  from bigdl.dllib.utils.file_utils import Sample
  import numpy
  from pyspark.ml.linalg import DenseVector, SparseVector, VectorUDT
  import sys
  import os
  import re
  from bigdl.dllib.utils.log4Error import *
label_desc: Use image node_id 15 for calling a global function with example usage: toMultiShape(shape) and returns: shape, unknown, list, list