code: def __init__(
      self,
      max_angle=4,
      max_len=60,
      max_width=20,
      min_times=0,
      max_times=10,
      ramp_kwargs=None,
      draw_method=DrawMethod.LINE,
  ):
      self.max_angle = max_angle
      self.max_len = max_len
      self.max_width = max_width
      self.min_times = min_times
      self.max_times = max_times
      self.draw_method = draw_method
      self.ramp = (
          LinearRamp(**ramp_kwargs) if ramp_kwargs is not None else None
      )
  
imports: import math
  import random
  import hashlib
  import logging
  from enum import Enum
  import cv2
  import numpy
label_desc: Use image node_id 1 to create a new RandomIrregularMaskGenerator object  with example: obj = RandomIrregularMaskGenerator(max_angle, max_len, max_width, min_times, max_times, ramp_kwargs, draw_method)