docstr: "Test injection of invalid config2 from a different folder.
          
docstr_tok: ["``","Test","injection","of","invalid","config2","from","a","different","folder","."]
code: def test_config2_invalid(self):
      """ "Test injection of invalid config2 from a different folder."""
      # Create system call.
      call = "python tests/hydra/my_app.py --config-path config_subdir --config-name 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 5 for calling the TestHydraRunner obj's underlying member method code with example usage: obj.test_config2_invalid() without return types