code: def test_unions():
      int_float_union = m.IntFloat()
      int_float_union.i = 42
      assert int_float_union.i == 42
      int_float_union.f = 3.0
      assert int_float_union.f == 3.0
  
imports: import pytest
  from pybind11_tests import ConstructorStats, UserType
  from pybind11_tests import opaque_types
label_desc: Use image node_id 3 for calling a global function with example usage: test_unions() without return types