code: def test_isin_non_1D_dim():
      elements = torch.tensor(
          [[2, 3], [5, 5], [20, 13]], device=F.ctx()
      )
      test_elements = torch.tensor([2, 5], device=F.ctx())
      with pytest.raises(Exception):
          gb.isin(elements, test_elements)
      elements = torch.tensor([2, 3, 5, 5, 20, 13], device=F.ctx())
      test_elements = torch.tensor([[2, 5]], device=F.ctx())
      with pytest.raises(Exception):
          gb.isin(elements, test_elements)
  
file_path: dgl/tests/python/pytorch/graphbolt/test_base.py
imports: import re
  import unittest
  from collections.abc import Iterable, Mapping
  import backend
  import dgl.graphbolt
  import pytest
  import torch
  from .None import gb_test_utils
label_desc: Use image node_id 7 for calling a global function with example usage: test_isin_non_1D_dim() without return types