code: def test_on_kill(self, mock_kill, mock_rul_cli):
      operator = PigOperator(pig=PIG, task_id=TEST_TASK_ID)
      operator.execute(context=TEST_CONTEXT_ID)
      operator.on_kill()
  
      mock_rul_cli.assert_called()
      mock_kill.assert_called()
  
file_path: airflow/tests/providers/apache/pig/operators/test_pig.py
imports: from __future__ import annotations
  from unittest import mock
  import pytest
  from airflow.providers.apache.pig.hooks.pig import PigCliHook
  from airflow.providers.apache.pig.operators.pig import PigOperator
label_desc: Use image node_id 4 for calling the TestPigOperator obj's underlying member method code with example usage: obj.test_on_kill(mock_kill, mock_rul_cli) without return types