def find_key_value(arg_list, key, value):
  """Checks '--key value' is in arg_list."""
  for i in range(len(arg_list)):
    if arg_list[i] == key and arg_list[i + 1] == value:
      return True
  return False