code: def parse_extra(extra_payload: str) -> dict[str, Any]:
      try:
          extra = json.loads(extra_payload)
      except json.decoder.JSONDecodeError:
          logger.info(
              "Unable to decode `extra` field: %s", extra_payload
          )
          return {}
  
      # Fix for DBs saved with an invalid ``schemas_allowed_for_csv_upload``
      schemas_allowed_for_csv_upload = extra.get(
          "schemas_allowed_for_csv_upload"
      )
      if isinstance(schemas_allowed_for_csv_upload, str):
          extra["schemas_allowed_for_csv_upload"] = json.loads(
              schemas_allowed_for_csv_upload
          )
  
      return extra
  
file_path: superset/superset/commands/database/export.py
imports: import json
  import logging
  from typing import Any
  from collections.abc import Iterator
  import yaml
  from superset.commands.database.exceptions import DatabaseNotFoundError
  from superset.daos.database import DatabaseDAO
  from superset.commands.export.models import ExportModelsCommand
  from superset.models.core import Database
  from superset.utils.dict_import_export import EXPORT_VERSION
  from superset.utils.file import get_filename
  from superset.utils.ssh_tunnel import mask_password_info
label_desc: Use image node_id 1 for calling a global function with example usage: parse_extra(extra_payload) and returns: extra, dict