code: def get_template_and_bbox(
      template_filepath: str, template_bboxes_filepath: Optional[str]
  ) -> Tuple[Image.Image, Tuple[int, int, int, int]]:
      local_template_path = utils.pathmgr.get_local_path(
          template_filepath
      )
      template = Image.open(local_template_path)
      bboxes = get_bboxes(template_bboxes_filepath)
      template_key = os.path.basename(template_filepath)
      bbox = bboxes[template_key]
  
      return template, bbox
  
file_path: AugLy/augly/image/utils/utils.py
imports: import functools
  import json
  import math
  import os
  from typing import List, Optional, Tuple, Union
  import numpy
  from augly import utils
  from PIL import Image
label_desc: Use image node_id 4 for calling a global function with example usage: get_template_and_bbox(template_filepath, template_bboxes_filepath) and returns: template,  bbox