def METHOD_NAME(deployment_options, short_image_name, env_var_name, org="edge-infrastructure"):
    # default tag is latest
    tag = "latest"
    image_from_env = os.environ.get(env_var_name)
    if deployment_options.deploy_manifest_path:
        print("Deploying {} according to manifest: {}".format(short_image_name, deployment_options.deploy_manifest_path))
        with open(deployment_options.deploy_manifest_path, "r") as manifest_contnet:
            manifest = yaml.safe_load(manifest_contnet)
        tag = f"latest-{get_image_revision_from_manifest(short_image_name, manifest)}"
    elif deployment_options.deploy_manifest_tag:
        print("Deploying {} according to assisted-installer-deployment tag: {}".format(short_image_name, deployment_options.deploy_manifest_tag))
        manifest = get_manifest_from_url(deployment_options.deploy_manifest_tag)
        tag = f"latest-{get_image_revision_from_manifest(short_image_name, manifest)}"
    elif deployment_options.deploy_tag:
        print("Deploying {} with deploy tag {}".format(short_image_name, deployment_options.deploy_tag))
        tag = deployment_options.deploy_tag
    # In case non of the above options was used allow overriding specific images with env var
    elif image_from_env:
        print("Overriding {} deployment image according to env {}".format(short_image_name, env_var_name))
        print("{} image for deployment: {}".format(short_image_name, image_from_env))
        return image_from_env
    image_fqdn = IMAGE_FQDN_TEMPLATE.format(org, short_image_name, tag)
    print("{} image for deployment: {}".format(short_image_name, image_fqdn))
    return image_fqdn