code: def _determine_interval(x: Union[int, float]) -> Union[int, float]:
      y = "{x:.1f}"
      inde = y.find(".") + 1
      if inde == -1:  # if no "." (if an integer)
          return x
  
      if int(y[inde]) < 5:
          return math.floor(x)
      else:
          return math.ceil(x)
  
file_path: caer/caer/video/extract_frames.py
imports: import math
  import time
  import cv2
  from .._internal import _check_target_size
  from ..path import list_videos, exists, mkdir
  from .constants import FRAME_COUNT, FPS
  from ..io import imsave, resize
  from ..annotations import Tuple, Optional, Union
label_desc: Use image node_id 2 for calling a global function with example usage: _determine_interval(x) and returns: x, math, math