code: def KeywordToClass(kw):
      """Map keyword (string) to a loss class."""
      index = [
          Keyword_BINARY,
          Keyword_CATEGORY,
          Keyword_CONTINUOUS,
      ].index(kw)
      return [BCE, CCE, MSE][index]
  
imports: import sys
  import numpy
  from fairlearn.adversarial._adversarial_mitigation import _AdversarialFairness
  from fairlearn.adversarial._pytorch_engine import PytorchEngine
  from fairlearn.adversarial._tensorflow_engine import TensorflowEngine
  from fairlearn.adversarial._backend_engine import BackendEngine
label_desc: Use image node_id 1 for calling a global function with example usage: KeywordToClass(kw) and returns: list