code: def process_bind_param(self, value: Any, dialect: Any) -> Any:
      if value is None:
          return value
      if not isinstance(value, enum.Enum):
          raise TypeError("Value is not an instance of Enum.")
      val = self._member_map.get(value.name)
      if val is None:
          raise ValueError(
              "Member '{value}' is not a supported enum: {members}".format(
                  value=value, members=list(self._member_map.keys())
              )
          )
      return val._value_
  
file_path: Ax/ax/storage/sqa_store/sqa_enum.py
imports: import enum
  from typing import Any, Dict, List
  from ax.storage.sqa_store.db import NAME_OR_TYPE_FIELD_LENGTH
  from sqlalchemy import types
label_desc: Use image node_id 2 for calling the BaseNullableEnum obj's underlying member method code with example usage: obj.process_bind_param(value, dialect) and returns: val, value