code: def test_strategy_lifespan(
      test_points, expected_top_n, size, maximize
  ):
      result = average.strategy_lifespan(test_points, size, maximize)
      assert result == expected_top_n
  
file_path: sockeye/test/unit/test_average.py
imports: import os
  import tempfile
  import pytest
  import torch
  import sockeye.average
label_desc: Use image node_id 3 for calling a global function with example usage: test_strategy_lifespan(test_points, expected_top_n, size, maximize) without return types