code: def clip_into_boundary(self, box, bound):
      if len(box) == 0:
          return box
      else:
          box[:, :, 0] = np.clip(box[:, :, 0], 0, bound[1])
          box[:, :, 1] = np.clip(box[:, :, 1], 0, bound[0])
          return box
  
file_path: EasyOCR/trainer/craft/data/pseudo_label/make_charbox.py
imports: import os
  import random
  import math
  import numpy
  import cv2
  import torch
  from data import imgproc
  from data.pseudo_label.watershed import exec_watershed_by_version
label_desc: Use image node_id 5 for calling the PseudoCharBoxBuilder obj's underlying member method code with example usage: obj.clip_into_boundary(box, bound) and returns: box, box