docstr: "Test injection of valid config2 - using namepath with schema is prohibited.
          
docstr_tok: ["``","Test","injection","of","valid","config2","-","using","namepath","with","schema","is","prohibited","."]
code: def test_config2_filepath_schema(self):
      """ "Test injection of valid config2 - using namepath with schema is prohibited."""
      # Create system call.
      call = "python tests/hydra/my_app.py --config-name config_subdir/config2_invalid.yaml"
  
      with pytest.raises(subprocess.CalledProcessError):
          # Run the call as subprocess.
          subprocess.check_call(
              call, shell=True, stdout=sys.stdout, stderr=sys.stdout
          )
  
file_path: NeMo/tests/hydra/test_hydra_runner.py
imports: import subprocess
  import sys
  from os import path
  import pytest
label_desc: Use image node_id 6 for calling the TestHydraRunner obj's underlying member method code with example usage: obj.test_config2_filepath_schema() without return types