code: def max_element(elements, ordered=None):
      """Returns the maximum number in 'elements'. Uses 'ordered' for comparisons,
      or '<' is none is provided.
      """
      assert is_iterable(elements)
      assert callable(ordered) or ordered is None
      if not ordered:
          ordered = operator.lt
  
      max = elements[0]
      for e in elements[1:]:
          if ordered(max, e):
              max = e
  
      return max
  
imports: import operator
  from b2.util import is_iterable
label_desc: Use image node_id 2 for calling a global function with example usage: max_element(elements, ordered) and returns: max