def METHOD_NAME(metrics_logger: MetricsLogger, queue: RedisQueue, count: int):
    """
    Metric to calculate how many inflight list have not been processed and instead
    sent back to the inbox.
    Args:
        count (int): Number of inflight lists sent to inbox
        metrics (MetricsLogger): Submit metric to cloudwatch
    """
    if metrics_logger.metrics_config.disable_metric_extraction:
        return
    try:
        metrics_logger.set_namespace("NotificationCanadaCa")
        metrics_logger.put_metric("batch_saving_inflight", count, "Count")
        metrics_logger.set_dimensions({"expired": "True", "notification_type": queue._suffix, "priority": queue._process_type})
        metrics_logger.flush()
        metrics_logger.put_metric("batch_saving_inflight", count, "Count")
        metrics_logger.set_dimensions({"expired": "True", "notification_type": "any", "priority": "any"})
        metrics_logger.flush()
    except ClientError as e:
        message = "Error sending CloudWatch Metric: {}".format(e)
        current_app.logger.warning(message)
    return