code: def _error_is_suppressed(error, code, contents):
      
      if len(contents) == 0:
          return False
  
      if error.line > 1:
          # Check above, and then to the side for suppressions
          above = contents[error.line - 2].split("#")
          if len(above) and _line_suppresses_error_code(above[-1].strip(),
                                                        code):
              return True
  
      aside = contents[error.line - 1].split("#")
      if len(aside) and _line_suppresses_error_code(aside[-1].strip(), code):
          return True
  
      return False
docs: Return true if error is suppressed by an inline suppression.