code: def __init__(self, time: int = 8760) -> None:
      try:
          from mixsimulator.MixSimulator import (
              MixSimulator,
          )  # pylint: disable=import-outside-toplevel
          from mixsimulator.Demand import Demand
  
          self._mix = MixSimulator()
          self._mix.set_data_to("Toamasina")
          self._demand = Demand()
          self._demand.set_data_to("Toamasina", delimiter=",")
          self._mix.set_demand(self._demand)
  
      except (KeyError, AttributeError, ModuleNotFoundError) as e:
          # send a skip error so that this does not break the test suit
          raise base.UnsupportedExperiment(
              "mixsimulator dependency issue"
          ) from e
      self._mix.set_penalisation_cost(100)
      self._mix.set_carbon_cost(10)
      parameters = self._mix.get_opt_params(time)
      parameters.set_name("dims")
      super().__init__(self._mix.loss_function, parameters)
  
imports: from ..None import base
label_desc: Use image node_id 1 to create a new OptimizeMix object from inherited base classes: base with example: obj = OptimizeMix(time)