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