code: def test_custom_function(all_values):
      for value in [
          "guid_2",
          "guid_1",
          "guid_5",
          "guid_XXX",
          "guid_XX",
      ]:
          test_predicate = in_lambda(
              ["volume_guids"],
              lambda volume_guids, val=value: val in volume_guids,
          )
          included = test_predicate.do_include(
              {"volume_guids": all_values}
          )
          assert included == (value in all_values)
  
imports: import pytest
  import numpy
  from pyspark.sql import SparkSession
  from pyspark.sql.types import IntegerType
  from petastorm import make_reader
  from petastorm.codecs import ScalarCodec
  from petastorm.etl.dataset_metadata import materialize_dataset
  from petastorm.predicates import in_set, in_intersection, in_negate, in_reduce, in_pseudorandom_split, in_lambda
  from petastorm.tests.test_common import TestSchema
  from petastorm.unischema import dict_to_spark_row, Unischema, UnischemaField
label_desc: Use image node_id 4 for calling a global function with example usage: test_custom_function(all_values) without return types