code: def _declare_dict_property(cls, name):
      """Declare getter and setter property for a given name."""
  
      def getter(self):
          return self[name]
  
      def setter(self, value):
          self[name] = value
  
      prop = property(fget=getter, fset=setter)
      setattr(cls, name, prop)
  
file_path: delta/delta/utils/kaldi/kaldi_dir.py
imports: import os
  from collections import defaultdict
  from absl import logging
label_desc: Use image node_id 1 for calling a global function with example usage: _declare_dict_property(cls, name) and returns: self