code: def aggregate_max(
      samples: Sequence[Number], precision: int = 2
  ) -> Union[float, int]:
      if isinstance(samples[-1], int):
          return max(samples)
      return round(max(samples), precision)
  
imports: import sys
  from typing import Union
label_desc: Use image node_id 3 for calling a global function with example usage: aggregate_max(samples, precision) and returns: round, max