code: def test_stdin_as_input(request):
      input_args = ["--language", "python"]
      args = cli.parse_args(input_args)
  
      assert args.language == "python"
  
      # Since pytest by default captures stdin, but sometimes we need to disable
      # it (primarily for using (i)pdb), we have 2 different strategies to verify
      # that stdin was returned as infile.
      capturemanager = request.config.pluginmanager.getplugin(
          "capturemanager"
      )
      if capturemanager.is_globally_capturing():
          assert isinstance(args.infile, capture.DontReadFromInput)
      else:
          assert args.infile.name == "<stdin>"
  
imports: import io
  import sys
  from unittest import mock
  from _pytest import capture
  from m2cgen import __version__, cli
  from tests.utils import verify_python_model_is_expected
label_desc: Use image node_id 3 for calling a global function with example usage: test_stdin_as_input(request) without return types