code: def test_minutely_emissions_generate_performance_stats_for_last_day(
      self,
  ):
      params = factory.create_simulation_parameters(
          num_days=1, data_frequency="minute", emission_rate="minute"
      )
      with patch.object(
          BenchmarkSource, "get_value", self.fake_minutely_benchmark
      ):
          algo = NoopAlgorithm(sim_params=params, env=self.env)
          algo.run(FakeDataPortal(self.env))
          self.assertEqual(
              len(algo.perf_tracker.sim_params.sessions), 1
          )
  
imports: from datetime import time
  import pandas
  from mock import patch
  from nose_parameterized import parameterized
  from six.moves import range
  from catalyst import TradingAlgorithm
  from catalyst.gens.sim_engine import BEFORE_TRADING_START_BAR
  from catalyst.finance.performance import PerformanceTracker
  from catalyst.finance.asset_restrictions import NoRestrictions
  from catalyst.gens.tradesimulation import AlgorithmSimulator
  from catalyst.sources.benchmark_source import BenchmarkSource
  from catalyst.test_algorithms import NoopAlgorithm
  from catalyst.testing.fixtures import WithDataPortal, WithSimParams, WithTradingEnvironment, CatalystTestCase
  from catalyst.utils import factory
  from catalyst.testing.core import FakeDataPortal
  from catalyst.utils.calendars.trading_calendar import days_at_time
label_desc: Use image node_id 2 for calling the TestTradeSimulation obj's underlying member method code with example usage: obj.test_minutely_emissions_generate_performance_stats_for_last_day() without return types