class_docstr: Stores hyperparameters for initialization, batch norm and training.
class_docstr_tok: ["Stores","hyperparameters","for","initialization",",","batch","norm","and","training","."]
code: def _filter_and_check_legacy_hparams(self, dikt):
      legacy_hparams = dict()
      for l_hparam in Hyperparameters._LEGACY_HPARAM_NAMES:
          if l_hparam in dikt:
              legacy_hparams[l_hparam] = dikt[l_hparam]
              del dikt[l_hparam]
      if legacy_hparams:
          self._check_pitch_range_compatibilities(legacy_hparams, dikt)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import itertools
  import os
  from magenta.models.coconet import lib_util
  import numpy
  import six
  import tensorflow.compat.v1
  import yaml
label_desc: Use image node_id 3 for calling the Hyperparameters obj's underlying member method code with example usage: obj._filter_and_check_legacy_hparams(dikt) without return types