def METHOD_NAME(context, igm):
    """ Creates an autoscaler, if necessary. """
    autoscaler_spec = context.properties.get('autoscaler')
    if autoscaler_spec:
        return create_autoscaler(context, autoscaler_spec, igm)
    return [], []