def find_startswith_endswith(arg_list, key, value):
  """Checks '--<key>anything<value>' is in arg_list."""
  for i in range(len(arg_list)):
    if arg_list[i].startswith(key) and arg_list[i].endswith(value):
      return True
  return False