code: def check_order(order):
      if order is not None and not isinstance(
          order, (list, np.ndarray)
      ):
          raise TypeError("Wrong order type")
  
      if order is not None:
          return np.array(order)
      else:
          return None
  
imports: from copy import deepcopy
  import numpy
  import pandas
label_desc: Use image node_id 2 for calling a global function with example usage: check_order(order) and returns: np, None