code: def test_reload(tmp_dir, dvc):
      (stage,) = tmp_dir.dvc_gen("foo", "foo")
      d = load_yaml(stage.relpath)
  
      # NOTE: checking that reloaded stage didn't change its checksum
      md5 = "11111111111111111111111111111111"
      d[stage.PARAM_MD5] = md5
      dump_yaml(stage.relpath, d)
  
      dvcfile = SingleStageFile(dvc, stage.relpath)
      stage = dvcfile.stage
  
      assert stage is not None
      dvcfile.dump(stage)
  
      d = load_yaml(stage.relpath)
      assert d[stage.PARAM_MD5] == md5
  
imports: import os
  import pytest
  from dvc.annotations import Annotation
  from dvc.dvcfile import SingleStageFile
  from dvc.exceptions import OutputDuplicationError
  from dvc.fs import LocalFileSystem
  from dvc.output import Output
  from dvc.repo import Repo
  from dvc.stage import PipelineStage, Stage
  from dvc.stage.utils import compute_md5
  from dvc.utils import dict_md5
  from dvc.utils.serialize import dump_yaml, load_yaml
  from dvc.utils.strictyaml import YAMLValidationError
label_desc: Use image node_id 7 for calling a global function with example usage: test_reload(tmp_dir, dvc) without return types