class_docstr: Unit test for GA Optimisation. 
class_docstr_tok: ["Unit","test","for","GA","Optimisation","."]
docstr: Test creation of object. 
docstr_tok: ["Test","creation","of","object","."]
code: def test_instantiation(self):
      """Test creation of object."""
      self.report("Testing GA Optimiser instantiation.")
      func_caller = FunctionCaller(cnn_syn_func1, self.nn_domain)
      worker_manager = SyntheticWorkerManager(1, time_distro="const")
      optimiser = nn_ga_optimiser.NNGAOptimiser(
          func_caller,
          worker_manager,
          self.cnn_mutation_op,
          reporter="silent",
      )
      self.report("Instantiated GAOptimiser object.")
      for attr in dir(optimiser):
          if not attr.startswith("_"):
              self.report(
                  "optimiser.%s = %s"
                  % (attr, str(getattr(optimiser, attr))),
                  "test_result",
              )
  
imports: from copy import deepcopy
  from argparse import Namespace
  import unittest
  from .None import nn_ga_optimiser
  from .nn_domains import NNDomain
  from .syn_nn_functions import cnn_syn_func1, mlp_syn_func1
  from .nn_domains import CNNConstraintChecker, MLPConstraintChecker
  from .nn_modifiers import get_nn_modifier_from_args
  from .unittest_nn_modifier_class import networks_are_equal
  from .nn_opt_utils import get_initial_cnn_pool, get_initial_mlp_pool
  from ..exd.experiment_caller import FunctionCaller
  from ..exd.worker_manager import SyntheticWorkerManager
  from ..utils.reporters import get_reporter
  from ..utils.option_handler import load_options
  from ..utils.base_test_class import BaseTestClass, execute_tests
label_desc: Use image node_id 2 for calling the GAOptimiserTestCase obj's underlying member method code with example usage: obj.test_instantiation() without return types