code: def array_squeeze(trait, value):
      if len(value.shape) > 1:
          return np.squeeze(value)
      else:
          return value
  
imports: from traitlets import TraitError, TraitType
  import numpy
  import pandas
  import warnings
  import datetime
  import six
label_desc: Use image node_id 6 for calling a global function with example usage: array_squeeze(trait, value) and returns: np, value