code: def cast_and_return_whether_casted(
      trace_types, values, context
  ) -> Tuple[List[Any], bool]:
      did_cast = False
      casted_values = []
      for t, v in zip(trace_types, values):
          casted_v = t.cast(v, context)
          casted_values.append(casted_v)
          if casted_v is not v:
              did_cast = True
      return casted_values, did_cast
  
imports: from typing import Any, List, Tuple
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: cast_and_return_whether_casted(trace_types, values, context) and returns: casted_values,  did_cast