code: def test_basic():
      assert is_torch_instance(torch.nn.Linear(1, 1), torch.nn.Linear)
  
imports: import torch
  from torch_geometric import is_torch_instance
  from torch_geometric.testing import onlyLinux, withPackage
label_desc: Use image node_id 1 for calling a global function with example usage: test_basic() without return types