def METHOD_NAME(arguments=None):
    """Converts a given url with the specified arguments."""
    parsed_options, arguments = get_options(arguments)
    if not arguments:
        sys.stdout.write(
            "Error: The image argument is mandatory. For more information type thumbor-url -h\n"
        )
        sys.exit(1)
    image_url = arguments[0]
    image_url = quote(image_url)
    try:
        config = Config.load(None)
    except Exception:  # pylint: disable=broad-except
        config = None
    if not parsed_options.key and not config:
        sys.stdout.write(
            "Error: The -k or --key argument is mandatory."
            " For more information type thumbor-url -h\n"
        )
        sys.exit(1)
    security_key, thumbor_params = get_thumbor_params(
        image_url, parsed_options, config
    )
    crypto = CryptoURL(key=security_key)
    url = crypto.generate(**thumbor_params)
    sys.stdout.write("URL:\n")
    sys.stdout.write(f"{url}\n")