code: def convert_enum_to_value(
      self,
      data: dict[str, Any],
      **kwargs: Any,  # pylint: disable=unused-argument
  ) -> dict[str, Any]:
      # we don't care about the enum, we want the value inside
      data["type"] = data["type"].value
      return data
  
imports: import logging
  from typing import Any
  from flask import request, Response
  from flask_appbuilder import expose
  from flask_appbuilder.api import safe
  from flask_appbuilder.security.decorators import permission_name, protect
  from flask_wtf.csrf import generate_csrf
  from marshmallow import EXCLUDE, fields, post_load, Schema, ValidationError
  from superset.commands.dashboard.embedded.exceptions import EmbeddedDashboardNotFoundError
  from superset.extensions import event_logger
  from superset.security.guest_token import GuestTokenResourceType
  from superset.views.base_api import BaseSupersetApi, statsd_metrics
label_desc: Use image node_id 1 for calling the ResourceSchema obj's underlying member method code with example usage: obj.convert_enum_to_value(data) and returns: data