code: def plot_linestyles(ax, linestyles, title):
      X, Y = np.linspace(0, 100, 10), np.zeros(10)
      yticklabels = []
  
      for i, (name, linestyle) in enumerate(linestyles):
          ax.plot(
              X,
              Y + i,
              linestyle=linestyle,
              linewidth=1.5,
              color="black",
          )
          yticklabels.append(name)
  
      ax.set_title(title)
      ax.set(
          ylim=(-0.5, len(linestyles) - 0.5),
          yticks=np.arange(len(linestyles)),
          yticklabels=yticklabels,
      )
      ax.tick_params(left=False, bottom=False, labelbottom=False)
      ax.spines[:].set_visible(False)
  
      # For each line style, add a text annotation with a small offset from
      # the reference point (0 in Axes coords, y tick value in Data coords).
      for i, (name, linestyle) in enumerate(linestyles):
          ax.annotate(
              repr(linestyle),
              xy=(0.0, i),
              xycoords=ax.get_yaxis_transform(),
              xytext=(-6, -12),
              textcoords="offset points",
              color="blue",
              fontsize=8,
              ha="right",
              family="monospace",
          )
  
label_desc: Use image node_id 1 for calling a global function with example usage: plot_linestyles(ax, linestyles, title) without return types