def remove_duplicates(input_list):
    """
    Remove duplicates from a list while preserving the order of elements.

    :param input_list: List of elements that may contain duplicates
    :return: List of elements with duplicates removed
    """
    seen = set()
    result = []
    for item in input_list:
        if item not in seen:
            seen.add(item)
            result.append(item)
    return result


def oss_resize_image(url):
    if "res.cybertogether.net" in url and "x-oss-process" not in url:
        return f"{url}?x-oss-process=image/resize,h_300"

    return url
