class_docstr: A config utility class.
class_docstr_tok: ["A","config","utility","class","."]
docstr: Update members while disallowing new keys.
docstr_tok: ["Update","members","while","disallowing","new","keys","."]
code: def override(self, config_dict_or_str, allow_new_keys=False):
      """Update members while disallowing new keys."""
      if isinstance(config_dict_or_str, str):
          if not config_dict_or_str:
              return
          elif "=" in config_dict_or_str:
              config_dict = self.parse_from_str(config_dict_or_str)
          elif config_dict_or_str.endswith(".yaml"):
              config_dict = self.parse_from_yaml(config_dict_or_str)
          else:
              raise ValueError(
                  'Invalid string {}, must end with .yaml or contains "=".'.format(
                      config_dict_or_str
                  )
              )
      elif isinstance(config_dict_or_str, dict):
          config_dict = config_dict_or_str
      else:
          raise ValueError(
              "Unknown value type: {}".format(config_dict_or_str)
          )
  
      self._update(config_dict, allow_new_keys)
  
imports: import ast
  import collections
  import copy
  from typing import Any, Dict, Text
  import six
  import tensorflow
  import yaml
label_desc: Use image node_id 12 for calling the Config obj's underlying member method code with example usage: obj.override(config_dict_or_str, allow_new_keys) without return types