code: def convert_target_to_relative(
      img: ImageTensor, target: Dict[str, Any]
  ) -> Tuple[ImageTensor, Dict[str, Any]]:
      target["boxes"] = convert_to_relative_coords(
          target["boxes"], get_img_shape(img)
      )
      return img, target
  
file_path: doctr/doctr/datasets/utils.py
imports: import string
  import unicodedata
  from collections.abc import Sequence
  from functools import partial
  from pathlib import Path
  from typing import Any, Dict, List, Optional, Tuple, TypeVar, Union
  from typing import Sequence
  import numpy
  from PIL import Image
  from doctr.io.image import get_img_shape
  from doctr.utils.geometry import convert_to_relative_coords, extract_crops, extract_rcrops
  from .vocabs import VOCABS
label_desc: Use image node_id 5 for calling a global function with example usage: convert_target_to_relative(img, target) and returns: img,  target