code: def _create_font_object(font_size=None, font_path=None):
      if font_size is None and font_path is None:
          return DEFAULT_FONT_OBJECT
      else:
          return ImageFont.truetype(
              font_path or DEFAULT_FONT_PATH,
              font_size or DEFAULT_FONT_SIZE,
          )
  
imports: from typing import List, Optional, Union, Dict, Any, Tuple, Dict
  import functools
  import os
  import sys
  from itertools import cycle
  import numpy
  from PIL import Image, ImageFont, ImageDraw, ImageColor
  import layoutparser
  from .elements import Layout, Interval, Rectangle, TextBlock, Quadrilateral
  from .elements.utils import cvt_coordinates_to_points
label_desc: Use image node_id 3 for calling a global function with example usage: _create_font_object(font_size, font_path) and returns: DEFAULT_FONT_OBJECT, ImageFont