code: def _filter_config(self, config, fields=None):
          
          filter_fields_default = [
              'bind_password',
              'connection'
              ]
  
          filter_fields = fields or filter_fields_default
          return dict(
              map(
                  lambda key: (key, '<hidden>' if key in filter_fields else config[key]),
                  config.keys()
                  )
              )
docs: Filter sensitive details like passwords from a configuration
          dictionary.