code: def __init__(
      self,
      message,
      *,
      orig_path,
      replace_path,
      orig_line_num=None,
      replace_line_num=None,
      orig_line=None,
      replace_line=None,
  ):
      infos = [
          "Original file: {}".format(orig_path),
          "Replacement file: {}".format(replace_path),
      ]
      if orig_line_num is not None:
          infos.append(
              "Line number in the original file: {}".format(
                  orig_line_num
              )
          )
      if replace_line_num is not None:
          infos.append(
              "Line number in the replacement file: {}".format(
                  replace_line_num
              )
          )
      if orig_line is not None:
          infos.append("Original line: [{}]".format(orig_line))
      if replace_line is not None:
          infos.append("Replacement line: [{}]\n".format(replace_line))
      message_ = (
          "Replacement file correctness check failed: {message}\n\n"
          "If you're seeing this error message, it's likely that you "
          "edited a file within the example directory but did not edit the "
          "matching replacement file which is used for testing. "
          "Please ensure the two files are synchronized.\n\n"
          "{infos}".format(message=message, infos="\n".join(infos))
      )
      super().__init__(message_)
  
imports: import contextlib
  import os
  import re
  import shutil
  import subprocess
  import sys
  import tempfile
label_desc: Use image node_id 1 to create a new ReplacementFileCorrectnessError object from inherited base classes: Exception with example: obj = ReplacementFileCorrectnessError(message)