code: def _fake_json_for_non_existing(
      paths: str | list[str], cmd: str
  ) -> list[dict]:
      """Create faked JSON records for nonexisting paths provided by `paths`
      after running `cmd`.
  
      Internal helper for `AnnexRepo._call_annex_records`.
  
      Parameters:
      -----------
      paths: str or list of str
          paths to create annex-like JSON records for, communicating that the
          path is unknown.
      cmd: str
          annex cmd for which to fake this result
      """
  
      return [
          {
              "command": cmd,
              "file": f,
              "note": "not found",
              "success": False,
              "error-messages": ["File unknown to git"]  # Note,
              # that git's and annex' reporting here differs by config and
              # command on whether they say "does not exist" or "did not match
              # any file known to git".
          }
          for f in ensure_list(paths)
      ]
  
imports: from __future__ import annotations
  from datalad.utils import ensure_list
label_desc: Use image node_id 1 for calling a global function with example usage: _fake_json_for_non_existing(paths, cmd) and returns: unknown