code: def cos(x):
      if np.iterable(x):
          return [
              math.cos(val.convert_to(radians).get_value()) for val in x
          ]
      else:
          return math.cos(x.convert_to(radians).get_value())
  
imports: import math
  from packaging.version import parse
  import numpy
  import matplotlib.ticker
  import matplotlib.units
label_desc: Use image node_id 2 for calling a global function with example usage: cos(x) and returns: unknown, math