code: def test_check():
      check(torch.tensor(42))
      check((torch.tensor(4), torch.tensor(2)))
  
      with pytest.raises(TypeError):
          check(42)
  
      with pytest.raises(TypeError):
          check("str")
  
      with pytest.raises(TypeError):
          check((torch.tensor(4), 2))
  
file_path: fairscale/tests/nn/pipe/test_microbatch.py
imports: import pytest
  import torch
  import torch.cuda
  from fairscale.nn.pipe.microbatch import Batch, check, gather, scatter
label_desc: Use image node_id 6 for calling a global function with example usage: test_check() without return types