code: def test_one_dimension(self) -> None:
      t = torch.zeros((3,))
      self.assertIsNone(match_shape(t, 3))
      self.assertIsNone(match_shape(t, ...))
      self.assertIsNone(match_shape(t, 3, ...))
      self.assertIsNone(match_shape(t, ..., 3))
      self.assertEqual(match_shape(t, -1), 3)
      with self.assertRaises(TypeError):
          match_shape(t)
      with self.assertRaises(TypeError):
          match_shape(t, 3, 1)
      with self.assertRaises(TypeError):
          match_shape(t, 3, ..., 3)
  
file_path: PyTorch-BigGraph/test/test_util.py
imports: from unittest import main, TestCase
  import torch
  from torchbiggraph.util import match_shape, round_up_to_nearest_multiple, split_almost_equally
label_desc: Use image node_id 2 for calling the TestMatchShape obj's underlying member method code with example usage: obj.test_one_dimension() without return types