class_docstr: Defines parameter ranges for tuning.
class_docstr_tok: ["Defines","parameter","ranges","for","tuning","."]
code: def set_categorical(self, name, categories, length=None):
      self._check_reset_and_type_change(name, self._categorical_params)
      self._categorical_params[name] = (name, categories, length)
  
file_path: tensor2tensor/tensor2tensor/layers/common_hparams.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from six.moves import zip
  from tensor2tensor.utils import hparam
  from tensor2tensor.utils import registry
  import tensorflow.compat.v1
label_desc: Use image node_id 3 for calling the RangedHParams obj's underlying member method code with example usage: obj.set_categorical(name, categories, length) without return types