code: def merge_jsons_in_order(jsons: List[str]) -> str:
      """Applies JSON Merge Patch process to a list of json documents in order.
  
      Takes a list of json document strings and performs "JSON Merge Patch" (see json_merge_patch).
      The first element in the list of json docs is treated as the base, subsequent docs (if any)
      are applied as patches in order from first to last.
  
      Args:
          jsons: list of json docs to merge into a composite json document.
  
      Returns:
          The composite json document string.
  
      """
      base_json = jsons.pop(0)
      # json.loads is called to check that input strings are valid json.
      json.loads(base_json)
      composite_json = base_json
      for json_str in jsons:
          json.loads(json_str)
          composite_json = json_merge_patch(composite_json, json_str)
      return composite_json
  
imports: from typing import List
  import json
  import _jsonnet
label_desc: Use image node_id 2 for calling a global function with example usage: merge_jsons_in_order(jsons) and returns: composite_json