code: def _get_secret_with_context(
      filename,
      secret,
      plugin_settings,
      lines_of_context=5,
      force=False,
  ):
      
      snippet = CodeSnippetHighlighter().get_code_snippet(
          filename,
          secret['line_number'],
          lines_of_context=lines_of_context,
      )
  
      try:
          raw_secret_value = get_raw_secret_value(
              snippet.target_line,
              secret,
              plugin_settings,
              filename,
          )
  
          snippet.highlight_line(raw_secret_value)
      except SecretNotFoundOnSpecifiedLineError:
          if not force:
              raise
  
          snippet.target_line = colorize(
              snippet.target_line,
              AnsiColor.BOLD,
          )
  
      return snippet.add_line_numbers()
docs: Displays the secret, with surrounding lines of code for better context.
  
      :type filename: str
      :param filename: filename where secret resides in
  
      :type secret: dict, PotentialSecret.json() format
      :param secret: the secret listed in baseline
  
      :type plugin_settings: list
      :param plugin_settings: plugins used to create baseline.
  
      :type lines_of_context: int
      :param lines_of_context: number of lines displayed before and after
          secret.
  
      :type force: bool
      :param force: if True, will print the lines of code even if it doesn't
          find the secret expected
  
      :raises: SecretNotFoundOnSpecifiedLineError