class_docstr: Tests command line interface of `tabnanny`.
class_docstr_tok: ["Tests","command","line","interface","of","`","tabnanny","`","."]
docstr: Should displays error when errored python file is given.
docstr_tok: ["Should","displays","error","when","errored","python","file","is","given","."]
code: def test_with_errored_file(self):
      """Should displays error when errored python file is given."""
      with TemporaryPyFile(SOURCE_CODES["wrong_indented"]) as file_path:
          stderr = f"{file_path!r}: Token Error: "
          stderr += (
              "unindent does not match any outer indentation level"
              " (<string>, line 3)"
          )
          self.validate_cmd(
              file_path, stderr=stderr, expect_failure=True
          )
  
imports: from unittest import TestCase, mock
  import errno
  import os
  import tabnanny
  import tokenize
  import tempfile
  import textwrap
  from test.support import captured_stderr, captured_stdout, script_helper, findfile
  from test.support.os_helper import unlink
label_desc: Use image node_id 2 for calling the TestCommandLine obj's underlying member method code with example usage: obj.test_with_errored_file() without return types