code: def test_file_as_input(tmp_path):
      f = tmp_path / "hello.txt"
      f.write_text("123")
  
      input_args = ["-l", "python", str(f)]
      args = cli.parse_args(input_args)
  
      assert args.language == "python"
      assert isinstance(args.infile, io.BufferedReader)
      assert args.infile.name == str(f)
  
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 2 for calling a global function with example usage: test_file_as_input(tmp_path) without return types