code: def scalar_or_tuple(x):
      if len(x) == 1:
          return x[0]
      return x
  
file_path: OMLT/src/omlt/formulation.py
imports: import abc
  import weakref
  import pyomo.environ
label_desc: Use image node_id 1 for calling a global function with example usage: scalar_or_tuple(x) and returns: x, x