code: def test_any_of(k1, v1, k2, v2):
      m1 = dict(zip(k1, v1))
      m2 = dict(zip(k2, v2))
      enum1 = Enum("enum1", m1)
      enum2 = Enum("enum2", m2)
      union = Union[enum1, enum2]
  
      # If the item appears in the first map any_of will return it.
      for k, v in m1.items():
          assert u.any_of(v, union) == enum1(v)
  
      for k, v in m2.items():
          # If a value from the second enum appears in enum1 any_of will return it;
          # else, it'll return the value from enum2.
          try:
              expected = enum1(v)
          except ValueError:
              expected = enum2(v)
  
          assert u.any_of(v, union) == expected
  
imports: import itertools
  import json
  import os
  import uuid
  from collections import OrderedDict
  from enum import Enum
  from typing import Union
  import hypothesis.strategies
  from hypothesis import given
  import caliban.util
  import pytest
label_desc: Use image node_id 5 for calling a global function with example usage: test_any_of(k1, v1, k2, v2) without return types