code: def assert_target_hashed(name, ob):
      fname = f"tests/testdata/{name}"
      if os.path.exists(fname):
          with open(fname) as fh:
              assert (
                  fh.read()
                  == hashlib.sha256(
                      json.dumps(ob, sort_keys=True).encode("utf-8")
                  ).hexdigest()
              )
      else:
          with open(fname, "w") as fh:
              fh.write(
                  hashlib.sha256(
                      json.dumps(ob, sort_keys=True).encode("utf-8")
                  ).hexdigest()
              )
  
file_path: lm-evaluation-harness/tests/test_version_stable.py
imports: import lm_eval.tasks
  import lm_eval.models
  import lm_eval.evaluator
  import random
  import pytest
  import os
  import json
  import hashlib
  import collections
label_desc: Use image node_id 2 for calling a global function with example usage: assert_target_hashed(name, ob) without return types