[docs]defconfig_check(args):""" Performs a basic check on the configuration arguments. Args: args: A dictionary of configuration arguments. :raises RuntimeError: If a configuration check fails. """try:if"use_amp"inargs:assertargs["use_amp"]in{True,False}# if "patience" in args:# assert args["patience"] > 0exceptAssertionErrorase:raiseRuntimeError("Exception: {}. Some parameters are not valid, please see the main example.".format(e))