code: def to_obj_array(arr):
      if is_obj_array(arr):
          return arr
      obj_array_out = obj_array(1)
      obj_array_out[0] = arr.squeeze()
      return obj_array_out
  
imports: import numpy
  import pandas
  import seaborn
  import matplotlib.pyplot
  import warnings
  import itertools
label_desc: Use image node_id 21 for calling a global function with example usage: to_obj_array(arr) and returns: obj_array_out, arr