class_docstr: Interact with MySQL.
  
  You can specify charset in the extra field of your connection
  as ``{"charset": "utf8"}``. Also you can choose cursor as
  ``{"cursor": "SSCursor"}``. Refer to the MySQLdb.cursors for more details.
  
  Note: For AWS IAM authentication, use iam in the extra connection parameters
  and set it to true. Leave the password field empty. This will use the
  "aws_default" connection to get the temporary token unless you override
  in extras.
  extras example: ``{"iam":true, "aws_conn_id":"my_aws_conn"}``
  
  You can also add "local_infile" parameter to determine whether local_infile feature of MySQL client is
  going to be enabled (it is disabled by default).
  
  :param schema: The MySQL database schema to connect to.
  :param connection: The :ref:`MySQL connection id <howto/connection:mysql>` used for MySQL credentials.
  :param local_infile: Boolean flag determining if local_infile should be used
  :param init_command: Initial command to issue to MySQL server upon connection
code: def _get_conn_config_mysql_connector_python(
      self, conn: Connection
  ) -> dict:
      conn_config = {
          "user": conn.login,
          "password": conn.password or "",
          "host": conn.host or "localhost",
          "database": self.schema or conn.schema or "",
          "port": int(conn.port) if conn.port else 3306,
      }
  
      if self.local_infile:
          conn_config["allow_local_infile"] = True
      if self.init_command:
          conn_config["init_command"] = self.init_command
      # Ref: https://dev.mysql.com/doc/connector-python/en/connector-python-connectargs.html
      for key, value in conn.extra_dejson.items():
          if key.startswith("ssl_"):
              conn_config[key] = value
  
      return conn_config
  
imports: from __future__ import annotations
  import json
  import logging
  from typing import TYPE_CHECKING, Any, Union
  from airflow.exceptions import AirflowOptionalProviderFeatureException
  from airflow.providers.common.sql.hooks.sql import DbApiHook
label_desc: Use image node_id 5 for calling the MySqlHook obj's underlying member method code with example usage: obj._get_conn_config_mysql_connector_python(conn) and returns: conn_config