code: def get_gpu_type(t):
      assert t.__module__ == "torch"
      return getattr(torch.cuda, t.__name__)
  
imports: import contextlib
  import numbers
  import os
  import re
  import warnings
  from itertools import product
  import numpy
  import pytest
  import torch
  import torch.cuda
  from numpy.testing import assert_allclose
  from pytest import approx
label_desc: Use image node_id 6 for calling a global function with example usage: get_gpu_type(t) and returns: getattr