code: def test_device_topology_amd_constructor():
      # doesn't need cl_amd_device_attribute_query support to succeed
      topol = cl.DeviceTopologyAmd(3, 4, 5)
  
      assert topol.bus == 3
      assert topol.device == 4
      assert topol.function == 5
  
      if not cl._PYPY:
          assert not hasattr(topol, "__dict__")
  
imports: import numpy
  import numpy.linalg
  import pytest
  import pyopencl
  import pyopencl.array
  import pyopencl.cltypes
  import pyopencl.clrandom
  from pyopencl.tools import pytest_generate_tests_for_pyopencl, ImmediateAllocator, DeferredAllocator
  from pyopencl.characterize import get_pocl_version
label_desc: Use image node_id 7 for calling a global function with example usage: test_device_topology_amd_constructor() without return types