code: def is_cuda_tensor(obj):
      return (
          isinstance(obj, torch.Tensor)
          and obj.is_cuda
          and not isinstance(obj, torch._subclasses.FakeTensor)
      )
  
imports: import gc
  import sys
  from typing import Any, Dict, List, NamedTuple, Optional, Tuple
  import types
  import weakref
  import json
  from tempfile import NamedTemporaryFile
  import torch
  from torch.cuda._memory_viz import _frames_fmt, _block_extra
  import atexit
  import logging
label_desc: Use image node_id 7 for calling a global function with example usage: is_cuda_tensor(obj) and returns: unknown