code: def setup_teardown_single_obj():
      creator.create(FITCLSNAME, base.Fitness, weights=(-1.0,))
      creator.create(
          INDCLSNAME, list, fitness=creator.__dict__[FITCLSNAME]
      )
      yield
      teardown_()
  
file_path: deap/tests/test_algorithms.py
imports: import random
  import numpy
  import pytest
  from deap import algorithms
  from deap import base
  from deap import benchmarks
  from deap.benchmarks.tools import hypervolume
  from deap import cma
  from deap import creator
  from deap import tools
label_desc: Use image node_id 2 for calling a global function with example usage: setup_teardown_single_obj() without return types