code: def apply(self, sample, context=None):
      transform = iaa.Sometimes(self.prob, iaa.HorizontalFlip(1.0))
      if "mask" in sample.keys():
          img, line_strings, seg = transform(
              image=sample["image"],
              line_strings=sample["lanes"],
              segmentation_maps=sample["mask"],
          )
          sample["image"] = img
          sample["lanes"] = line_strings
          sample["mask"] = seg
      else:
          img, line_strings = transform(
              image=sample["image"], line_strings=sample["lanes"]
          )
          sample["image"] = img
          sample["lanes"] = line_strings
  
      return sample
  
imports: import numpy
  import imgaug.augmenters
  from .operators import BaseOperator, register_op
  from ppdet.utils.logger import setup_logger
  from ppdet.data.culane_utils import linestrings_to_lanes, transform_annotation
label_desc: Use image node_id 2 for calling the HorizontalFlip obj's underlying member method code with example usage: obj.apply(sample, context) and returns: sample