code: def _without_command(results):
      """A helper to tune up results so that they lack 'command'
      which is guaranteed to differ between different cmd types
      """
      out = []
      for r in results:
          r = r.copy()
          r.pop("command")
          out.append(r)
      return out
  
file_path: datalad/datalad/local/tests/test_foreach_dataset.py
imports: import os.path
  import sys
  from pathlib import Path
  import pytest
  from datalad.api import create
  from datalad.distribution.dataset import Dataset
  from datalad.tests.utils_pytest import assert_false, assert_greater, assert_in, assert_not_in, assert_status, eq_, get_deeply_nested_structure, ok_clean_git, swallow_outputs, with_tempfile
label_desc: Use image node_id 1 for calling a global function with example usage: _without_command(results) and returns: out