code: def overlay_stripes_intensity(
      line_width: float,
      line_angle: float,
      line_density: float,
      line_type: str,
      line_opacity: float,
      metadata: Dict[str, Any],
      **kwargs,
  ) -> float:
      binary_mask = imutils.compute_stripe_mask(
          src_w=metadata["src_width"],
          src_h=metadata["src_height"],
          line_width=line_width,
          line_angle=line_angle,
          line_density=line_density,
      )
  
      if line_type == "dotted":
          # To create dotted effect, multiply mask by stripes in perpendicular direction
          perpendicular_mask = imutils.compute_stripe_mask(
              src_w=metadata["src_width"],
              src_h=metadata["src_height"],
              line_width=line_width,
              line_angle=line_angle + 90,
              line_density=line_density,
          )
          binary_mask *= perpendicular_mask
      elif line_type == "dashed":
          # To create dashed effect, multiply mask by stripes with a larger line
          # width in perpendicular direction
          perpendicular_mask = imutils.compute_stripe_mask(
              src_w=metadata["src_width"],
              src_h=metadata["src_height"],
              line_width=0.7,
              line_angle=line_angle + 90,
              line_density=line_density,
          )
          binary_mask *= perpendicular_mask
  
      perc_stripes = np.mean(binary_mask)
      return overlay_media_intensity_helper(line_opacity, perc_stripes)
  
imports: from typing import Any, Dict, Optional, Union
  import numpy
  from augly.image import utils
  from PIL import Image
label_desc: Use image node_id 21 for calling a global function with example usage: overlay_stripes_intensity(line_width, line_angle, line_density, line_type, line_opacity, metadata) and returns: overlay_media_intensity_helper