code: def test_sha1_add_tensor(sha1_store, compress):
      os.chdir(TESTING_STORE_DIR)
      sha1_store.add(
          torch.Tensor([1.0, 5.5, 3.4]).repeat(100), compress
      )
      with sha1_store._readonly_json_ctx:
          json_dict = sha1_store._json_dict
      key = "81cb2a3f823cfb78da8dd390e29e685720974cc7"
      assert (
          key in json_dict.keys() and json_dict[key]["ref_count"] == 1
      ), json_dict
  
file_path: fairscale/tests/experimental/wgit/test_sha1_store.py
imports: import os
  from pathlib import Path
  import shutil
  import sys
  import pytest
  import torch
  from torch import nn
  from fairscale.experimental.wgit.sha1_store import SHA1_Store
  from fairscale.fair_dev.testing.testing import objects_are_equal
label_desc: Use image node_id 4 for calling a global function with example usage: test_sha1_add_tensor(sha1_store, compress) without return types