code: def strategy_last(points, size, maximize):
      best = max if maximize else min
      after_top = points.index(best(points)) + 1
      top_n = points[max(0, after_top - size) : after_top]
      return top_n
  
file_path: sockeye/sockeye/average.py
imports: import argparse
  import itertools
  import logging
  import os
  from typing import Dict, Iterable, List
  import torch
  from .None import arguments
  from .None import constants
  from .None import utils
  from .log import setup_main_logger, log_sockeye_version
label_desc: Use image node_id 4 for calling a global function with example usage: strategy_last(points, size, maximize) and returns: top_n