code: def _extract_error_code(self, exception):
      if isinstance(exception.args[0], Exception):
          exception = exception.args[0]
      return exception.args[0]
  
file_path: sqlalchemy/lib/sqlalchemy/dialects/mysql/pymysql.py
imports: from .mysqldb import MySQLDialect_mysqldb
  from ...util import langhelpers
label_desc: Use image node_id 7 for calling the MySQLDialect_pymysql obj's underlying member method code with example usage: obj._extract_error_code(exception) and returns: exception