code: def cut(list_, index=0):
      """Cut a list by index or arg"""
      if isinstance(index, int):
          cut_ = lambda x: x[index]
      else:
          cut_ = lambda x: getattr(x, index)
      return list(map(cut_, list_))
  
imports: from __future__ import division
  import re
  from decimal import Decimal
  from math import ceil, cos, floor, log10, pi, sin
label_desc: Use image node_id 6 for calling a global function with example usage: cut(list_, index) and returns: list