code: def get_cpu_type(t):
      assert t.__module__ == "torch.cuda"
      return getattr(torch, t.__class__.__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 5 for calling a global function with example usage: get_cpu_type(t) and returns: getattr