code: def _ValidateArguments(arg_dict, type_check_dict):
    
    messages = []
    for arg_name, arg_value in arg_dict.items():
      if arg_name in type_check_dict:
        type_check = type_check_dict[arg_name]
        res = _ValidateValue(arg_value, type_check)
        if not res:
          message = ("Invalid value '%s' for argument %s. Expected %s" %
                     (arg_value, arg_name, _FormatTypeCheck(type_check)))
          messages.append(message)
    return messages
docs: Validate dictionary of arguments and return list of errors messages.