parameters: (flags)
docstring: Checks the parsed and unparsed flags to ensure they are valid in 2.X.
  
    Args:
      flags: argparse.Namespace object containing TFLite flags.
  
    Raises:
      ValueError: Invalid flags.
docstring_summary: Checks the parsed and unparsed flags to ensure they are valid in 2.X.
docstring_tokens: Checks the parsed and unparsed flags to ensure they are valid in 2 . X .
function: def _check_tf2_flags(flags):
    """Checks the parsed and unparsed flags to ensure they are valid in 2.X.
  
    Args:
      flags: argparse.Namespace object containing TFLite flags.
  
    Raises:
      ValueError: Invalid flags.
    """
    if not flags.keras_model_file and not flags.saved_model_dir:
      raise ValueError("one of the arguments --saved_model_dir "
                       "--keras_model_file is required")
function_tokens: def _check_tf2_flags ( flags ) : if not flags . keras_model_file and not flags . saved_model_dir : raise ValueError ( "one of the arguments --saved_model_dir " "--keras_model_file is required" )