code: def test_1_basic_override_type_error(tmpdir: Path) -> None:
      cmd = [
          "examples/tutorials/structured_configs/1_minimal/my_app.py",
          "hydra.run.dir=" + str(tmpdir),
          "hydra.job.chdir=True",
          "port=foo",
      ]
  
      expected = dedent(
          """\
          Value 'foo'( of type 'str')? could not be converted to Integer
              full_key: port
              object_type=MySQLConfig"""
      )
  
      err = run_with_error(cmd)
      assert re.search(expected, err) is not None
  
file_path: hydra/tests/test_examples/test_structured_configs_tutorial.py
imports: import re
  from pathlib import Path
  from textwrap import dedent
  from typing import Any
  from omegaconf import OmegaConf
  from pytest import mark
  from hydra.test_utils.test_utils import chdir_hydra_root, run_python_script, run_with_error
label_desc: Use image node_id 4 for calling a global function with example usage: test_1_basic_override_type_error(tmpdir) without return types