code: def test_get_hash(tmpdir):
      req_path = tmpdir / "requirements.txt"
      Path(req_path).touch()
  
      # empty requirements file
      assert (
          get_hash(req_path)
          == "3345524abf6bbe1809449224b5972c41790b6cf2"
      )
  
      # requirements file with one dependency
      req_path.write_text("lightning==1.0", encoding="utf-8")
      assert (
          get_hash(req_path)
          == "6177677a74b5d256e331cb9e390af58106e20220"
      )
  
label_desc: Use image node_id 1 for calling a global function with example usage: test_get_hash(tmpdir) without return types