code: def test_dvcfile_dos2unix(tmp_dir, dvc):
      from dvc_data.hashfile.hash import HashInfo
  
      (tmp_dir / "foo.dvc").dump(
          {"outs": [{"md5": "abc123", "size": 3, "path": "foo"}]}
      )
      orig_content = (tmp_dir / "foo.dvc").read_text()
      stage = dvc.stage.load_one("foo.dvc")
      assert stage.outs[0].hash_name == "md5-dos2unix"
      assert stage.outs[0].hash_info == HashInfo(
          "md5-dos2unix", "abc123"
      )
      stage.dump()
      assert (tmp_dir / "foo.dvc").read_text() == orig_content
  
imports: import textwrap
  import pytest
  from dvc.annotations import Annotation
  from dvc.dvcfile import LOCK_FILE, PROJECT_FILE, ParametrizedDumpError, SingleStageFile, load_file
  from dvc.stage.exceptions import StageFileDoesNotExistError
  from dvc.stage.loader import StageNotFound
  from dvc.utils.strictyaml import YAMLValidationError
label_desc: Use image node_id 22 for calling a global function with example usage: test_dvcfile_dos2unix(tmp_dir, dvc) without return types