code: def prep_intermediate_input(data, context):
      """
      Extracts only the translated text from the output of the first model
      and converts it into the string that is expected by the second model
      """
      if data:
          if isinstance(data, list):
              data = data[0]
          data = data.get("data") or data.get("body")
          data = json.loads(data)
          data = data["german_output"]
          return [data]
  
label_desc: Use image node_id 2 for calling a global function with example usage: prep_intermediate_input(data, context) and returns: list