code: def _dirty_results(res):
      return [r for r in res if r.get("state", None) != "clean"]
  
imports: import os
  import os.path
  from unittest.mock import patch
  import datalad.utils
  from datalad.api import create, diff, save
  from datalad.cmd import GitWitlessRunner, StdOutCapture
  from datalad.consts import PRE_INIT_COMMIT_SHA
  from datalad.distribution.dataset import Dataset
  from datalad.support.exceptions import NoDatasetFound
  from datalad.tests.utils_pytest import DEFAULT_BRANCH, OBSCURE_FILENAME, SkipTest, assert_in, assert_raises, assert_repo_status, assert_result_count, assert_status, chpwd, create_tree, eq_, get_deeply_nested_structure, has_symlink_capability, known_failure_githubci_win, neq_, ok_, with_tempfile
  from datalad.utils import Path
label_desc: Use image node_id 3 for calling a global function with example usage: _dirty_results(res) and returns: unknown