code: def test_call_from_parser_old_style_generator():
      # test that old style commands are invoked without any additional arguments
      class DummyOne(Interface):
          @staticmethod
          def __call__(arg=None):
              eq_(arg, "nothing")
              yield "nothing is"
              yield "magical"
  
      val = call_from_parser(DummyOne, _args(arg="nothing"))
      eq_(val, ["nothing is", "magical"])
  
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 4 for calling a global function with example usage: test_call_from_parser_old_style_generator() without return types