code: def test_lambda_serialization(
      image, mask, albumentations_bboxes, keypoints, seed, p
  ):
      def vflip_image(image, **kwargs):
          return FGeometric.vflip(image)
  
      def vflip_mask(mask, **kwargs):
          return FGeometric.vflip(mask)
  
      def vflip_bbox(bbox, **kwargs):
          return FGeometric.bbox_vflip(bbox, **kwargs)
  
      def vflip_keypoint(keypoint, **kwargs):
          return FGeometric.keypoint_vflip(keypoint, **kwargs)
  
      aug = A.Lambda(
          name="vflip",
          image=vflip_image,
          mask=vflip_mask,
          bbox=vflip_bbox,
          keypoint=vflip_keypoint,
          p=p,
      )
  
      serialized_aug = A.to_dict(aug)
      deserialized_aug = A.from_dict(
          serialized_aug, lambda_transforms={"vflip": aug}
      )
      set_seed(seed)
      aug_data = aug(
          image=image,
          mask=mask,
          bboxes=albumentations_bboxes,
          keypoints=keypoints,
      )
      set_seed(seed)
      deserialized_aug_data = deserialized_aug(
          image=image,
          mask=mask,
          bboxes=albumentations_bboxes,
          keypoints=keypoints,
      )
      assert np.array_equal(
          aug_data["image"], deserialized_aug_data["image"]
      )
      assert np.array_equal(
          aug_data["mask"], deserialized_aug_data["mask"]
      )
      assert np.array_equal(
          aug_data["bboxes"], deserialized_aug_data["bboxes"]
      )
      assert np.array_equal(
          aug_data["keypoints"], deserialized_aug_data["keypoints"]
      )
  
imports: import json
  import os
  import random
  from unittest.mock import patch
  import cv2
  import numpy
  import pytest
  import albumentations
  import albumentations.augmentations.functional
  import albumentations.augmentations.geometric.functional
  from albumentations.core.serialization import SERIALIZABLE_REGISTRY, shorten_class_name
  from albumentations.core.transforms_interface import ImageOnlyTransform
  from .conftest import skipif_no_torch
  from .utils import OpenMock, check_all_augs_exists, get_image_only_transforms, get_transforms, set_seed
label_desc: Use image node_id 12 for calling a global function with example usage: test_lambda_serialization(image, mask, albumentations_bboxes, keypoints, seed, p) and returns: FGeometric, FGeometric, FGeometric, FGeometric