def METHOD_NAME(deployment: OnlineDeployment):
    # If the deployment.code_configuration.code is a string, then it is the cloud code artifact name or full arm ID
    return isinstance(deployment.code_configuration.code, str) and (
        is_url(deployment.code_configuration.code) or deployment.code_configuration.code.startswith(ARM_ID_PREFIX)
    )