towhee.runtime.check_utils.check_keys

towhee.runtime.check_utils.check_keys(info: Dict[str, Any], essentials: Set[str])[source]

Check if the src is a valid node dictionary to describe.

Parameters:
  • info (Dict[str, Any]) – The info dictionary.

  • essentials (Set[str]) – The essential keys that node dictionary should contain.