class_docstr: Transforms/reverses Choice variables to numeric choices since GPyOpt
  does not accept string choices.
class_docstr_tok: ["Transforms\/reverses","Choice","variables","to","numeric","choices","since","GPyOpt","does","not","accept","string","choices","."]
code: def to_gpyopt_domain(self):
      return {
          "name": self.parameter.name,
          "type": "categorical",
          "domain": numpy.array(range(len(self.parameter.range))),
      }
  
imports: import numpy
  import logging
  import sherpa
  from sherpa.algorithms import Algorithm
  import pandas
  from sherpa.core import Choice, Continuous, Discrete, Ordinal
  import collections
  import GPyOpt
  import GPy
  import warnings
label_desc: Use image node_id 1 for calling the ChoiceTransform obj's underlying member method code with example usage: obj.to_gpyopt_domain() and returns: dict