docstr: Set params.
   :param config: contains one optional parameters:sample_rate(int, default=16000).
   :return: An object of class HParams, which is a set of hyperparameters as name-value pairs.
   
docstr_tok: ["Set","params",".",":","param","config",":","contains","one","optional","parameters",":","sample_rate","(","int",",","default=16000",")",".",":","return",":","An","object","of","class","HParams",",","which","is","a","set","of","hyperparameters","as","name-value","pairs","."]
code: def params(cls, config=None):
      """
      Set params.
       :param config: contains one optional parameters:sample_rate(int, default=16000).
       :return: An object of class HParams, which is a set of hyperparameters as name-value pairs.
      """
  
      sample_rate = 16000
  
      hparams = HParams(cls=cls)
      hparams.add_hparam("sample_rate", sample_rate)
  
      if config is not None:
          hparams.override_from_dict(config)
  
      return hparams
  
file_path: delta/delta/data/frontend/write_wav.py
imports: import delta.compat
  from delta.utils.hparam import HParams
  from delta.data.frontend.base_frontend import BaseFrontend
label_desc: Use image node_id 2 for calling the WriteWav obj's underlying member method code with example usage: obj.params(cls, config) and returns: hparams