code: def test_call_from_parser_result_filter():
      class DummyOne(Interface):
          @staticmethod
          def __call__(**kwargs):
              yield kwargs
  
      # call_from_parser doesn't add result_filter to the keyword arguments
      assert_not_in(
          "result_filter", call_from_parser(DummyOne, _new_args())[0]
      )
      # with dissolution of _OLD_STYLE_COMMANDS and just relying on having
      # @eval_results, no result_filter is added, since those commands are
      # not guaranteed to return/yield any record suitable for filtering.
      # The effect is the same -- those "common" options are not really applicable
      # to Interface's which do not return/yield expected records
      assert_not_in(
          "result_filter",
          call_from_parser(
              DummyOne, _new_args(common_report_type="dataset")
          )[0],
      )
  
file_path: datalad/datalad/cli/tests/test_exec.py
imports: import argparse
  from argparse import Namespace
  import pytest
  from datalad.interface.base import Interface
  from datalad.support.param import Parameter
  from datalad.tests.utils_pytest import assert_not_in, eq_, patch_config
  from datalad.utils import updated
  from ..exec import _get_result_filter, call_from_parser
  from ..parser import parser_add_common_options, setup_parser_for_interface
label_desc: Use image node_id 6 for calling a global function with example usage: test_call_from_parser_result_filter() without return types