code: def test_open_dirty_hash(tmp_dir, dvc):
      tmp_dir.dvc_gen("file", "file")
      (tmp_dir / "file").write_text("something")
  
      fs = DVCFileSystem(repo=dvc)
      with fs.open("file", "r") as fobj:
          assert fobj.read() == "something"
  
imports: import os
  import posixpath
  import shutil
  import pytest
  from fsspec.utils import tokenize
  from dvc.fs import localfs
  from dvc.fs.dvc import DVCFileSystem
  from dvc.testing.tmp_dir import make_subrepo
  from dvc_data.hashfile.build import build
  from dvc_data.hashfile.hash_info import HashInfo
label_desc: Use image node_id 3 for calling a global function with example usage: test_open_dirty_hash(tmp_dir, dvc) without return types