code: def __init__(self, hatch, density):
      self.num_lines = int(
          (hatch.count("\\") + hatch.count("x") + hatch.count("X"))
          * density
      )
      if self.num_lines:
          self.num_vertices = (self.num_lines + 1) * 2
      else:
          self.num_vertices = 0
  
imports: import numpy
  from matplotlib import _api
  from matplotlib.path import Path
label_desc: Use image node_id 1 to create a new SouthEastHatch object from inherited base classes: HatchPatternBase with example: obj = SouthEastHatch(hatch, density)