class_docstr: Transforms Discrete parameter from/to GPyOpt
class_docstr_tok: ["Transforms","Discrete","parameter","from\/to","GPyOpt"]
code: def to_gpyopt_domain(self):
      return {
          "name": self.parameter.name,
          "type": "discrete",
          "domain": tuple(
              range(
                  self.parameter.range[0], self.parameter.range[1] + 1
              )
          ),
      }
  
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 DiscreteTransform obj's underlying member method code with example usage: obj.to_gpyopt_domain() and returns: dict