code: def test_lsh_add(scale):
      lsh = LSH(scale)
      a = torch.rand(10)
      lsh.add("a", a)
      assert lsh._hash_to_key[lsh._key_to_hash["a"]] == {"a"}
  
file_path: pyro/tests/contrib/tracking/test_hashing.py
imports: import logging
  import pytest
  import torch
  from pyro.contrib.tracking.hashing import LSH, ApproxSet, merge_points
  from tests.common import assert_equal
label_desc: Use image node_id 2 for calling a global function with example usage: test_lsh_add(scale) without return types