code: def set_vertices_and_codes(self, vertices, codes):
      steps, stepsize = np.linspace(
          0.0, 1.0, self.num_lines, False, retstep=True
      )
      steps += stepsize / 2.0
      vertices[0::2, 0] = 0.0
      vertices[0::2, 1] = steps
      vertices[1::2, 0] = 1.0
      vertices[1::2, 1] = steps
      codes[0::2] = Path.MOVETO
      codes[1::2] = Path.LINETO
  
imports: import numpy
  from matplotlib import _api
  from matplotlib.path import Path
label_desc: Use image node_id 2 for calling the HorizontalHatch obj's underlying member method code with example usage: obj.set_vertices_and_codes(vertices, codes) without return types