Python 3.9 is now generally available.

google.appengine.datastore.datastore_index.ParseIndexDefinitions

Parses an individual index definitions document from string or stream.

document YAML document as a string or file-like stream.
open_fn Function for opening files. Unused.

EmptyConfigurationFile when the configuration file is empty. MultipleConfigurationFile when the configuration file contains more than one document.

Single parsed YAML file if one is defined, else None.