def METHOD_NAME(
    access: gci.componentmodel.ResourceAccess,
) -> str:
    # TODO: replace once a more fitting method exists in component-model
    if isinstance(access, gci.componentmodel.OciAccess):
        return access.imageReference
    elif isinstance(access, gci.componentmodel.S3Access):
        return f's3://{access.bucketName}/{access.objectKey}'
    else:
        raise NotImplementedError(access.type)