docstr: Create relative import paths for modules specified in class. This method
  is recursive.
  
  Parameters
  ----------
  configs : dict
      Configuration dictionary from .yaml file.
  dynamic_import_relative_path : str, optional
      Relative path to 'model/detector/'. This option is for supporting
      integrating this module into other modules. For example, easyocr/DBNet
      This should be left as None when calling this module as a standalone. 
      The default is None.
  
  Returns
  -------
  configs : dict
      Configuration dictionary with correct relative path.
docstr_tok: ["Create","relative","import","paths","for","modules","specified","in","class",".","This","method","is","recursive",".","Parameters","--","--","--","--","--","configs",":","dict","Configuration","dictionary","from",".yaml","file",".","dynamic_import_relative_path",":","str",",","optional","Relative","path","to","'model\/detector\/","'",".","This","option","is","for","supporting","integrating","this","module","into","other","modules",".","For","example",",","easyocr\/DBNet","This","should","be","left","as","None","when","calling","this","module","as","a","standalone",".","The","default","is","None",".","Returns","--","--","--","-","configs",":","dict","Configuration","dictionary","with","correct","relative","path","."]
code: def set_relative_import_path(
      self, configs, dynamic_import_relative_path
  ):
      """
      Create relative import paths for modules specified in class. This method
      is recursive.
  
      Parameters
      ----------
      configs : dict
          Configuration dictionary from .yaml file.
      dynamic_import_relative_path : str, optional
          Relative path to 'model/detector/'. This option is for supporting
          integrating this module into other modules. For example, easyocr/DBNet
          This should be left as None when calling this module as a standalone.
          The default is None.
  
      Returns
      -------
      configs : dict
          Configuration dictionary with correct relative path.
      """
      assert dynamic_import_relative_path is not None
      prefices = dynamic_import_relative_path.split(os.sep)
      for key, value in configs.items():
          if key == "class":
              configs.update(
                  {key: ".".join(prefices + value.split("."))}
              )
          else:
              if isinstance(value, dict):
                  value = self.set_relative_import_path(
                      value, dynamic_import_relative_path
                  )
              else:
                  pass
      return configs
  
imports: import os
  import math
  import yaml
  from shapely.geometry import Polygon
  import PIL.Image
  import numpy
  import cv2
  import pyclipper
  import torch
  from .model.constructor import Configurable
label_desc: Use image node_id 2 for calling the DBNet obj's underlying member method code with example usage: obj.set_relative_import_path(configs, dynamic_import_relative_path) and returns: configs