code: def test_cgroup_task_runner_super_calls(
      self, mock_super_on_finish, mock_super_init
  ):
      """
      This test ensures that initiating CgroupTaskRunner object
      calls init method of BaseTaskRunner,
      and when task finishes, CgroupTaskRunner.on_finish() calls
      super().on_finish() to delete the temp cfg file.
      """
      Job = mock.Mock()
      Job.job_type = None
      Job.task_instance = mock.MagicMock()
      Job.task_instance.run_as_user = None
      Job.task_instance.command_as_list.return_value = ["sleep", "1000"]
  
      runner = CgroupTaskRunner(Job)
      assert mock_super_init.called
  
      runner.on_finish()
      assert mock_super_on_finish.called
  
imports: from __future__ import annotations
  from unittest import mock
  from airflow.task.task_runner.cgroup_task_runner import CgroupTaskRunner
label_desc: Use image node_id 1 for calling the TestCgroupTaskRunner obj's underlying member method code with example usage: obj.test_cgroup_task_runner_super_calls(mock_super_on_finish, mock_super_init) without return types