code: def check_device(a: Tensor, b: Tensor) -> bool:
      return a.is_cuda and b.is_cuda
  
imports: import functools
  from typing import List, Optional
  import torch
  from torch import Tensor
  from torch._inductor import utils
  from torch.utils._mode_utils import no_dispatch
  from torch.utils._triton import has_triton
  from ..pattern_matcher import fwd_only, joint_fwd_bwd, Match, register_replacement
label_desc: Use image node_id 4 for calling a global function with example usage: check_device(a, b) and returns: unknown