code: def component(n, multiplier=1.0):
      """component filter, F, where F(x) yields x[n]"""
  
      def _(x):
          try:
              from numpy import asarray
  
              xx = asarray(x)
              xx = multiplier * xx[n, :]
              if isinstance(x[n], list):
                  xx = xx.tolist()
              elif isinstance(x[n], tuple):
                  xx = tuple(xx.tolist())
              elif type(x[n]) != type(xx):
                  xx = type(x[n])(xx)
              return xx
          except IndexError:
              return multiplier * x[n]
  
      return _
  
label_desc: Use image node_id 2 for calling a global function with example usage: component(n, multiplier) and returns: _, xx, unknown