class_docstr: LocalTaskJob runs a single task instance.
class_docstr_tok: ["LocalTaskJob","runs","a","single","task","instance","."]
code: def _log_return_code_metric(self, return_code: int):
      Stats.incr(
          "local_task_job.task_exit."
          f"{self.job.id}.{self.task_instance.dag_id}.{self.task_instance.task_id}.{return_code}"
      )
      # Same metric with tagging
      Stats.incr(
          "local_task_job.task_exit",
          tags={
              "job_id": self.job.id,
              "dag_id": self.task_instance.dag_id,
              "task_id": self.task_instance.task_id,
              "return_code": return_code,
          },
      )
  
imports: from __future__ import annotations
  import signal
  from typing import TYPE_CHECKING
  import psutil
  from airflow.configuration import conf
  from airflow.exceptions import AirflowException
  from airflow.jobs.base_job_runner import BaseJobRunner
  from airflow.jobs.job import perform_heartbeat
  from airflow.models.taskinstance import TaskReturnCode
  from airflow.stats import Stats
  from airflow.utils import timezone
  from airflow.utils.log.file_task_handler import _set_task_deferred_context_var
  from airflow.utils.log.logging_mixin import LoggingMixin
  from airflow.utils.net import get_hostname
  from airflow.utils.platform import IS_WINDOWS
  from airflow.utils.session import NEW_SESSION, provide_session
  from airflow.utils.state import TaskInstanceState
label_desc: Use image node_id 6 for calling the LocalTaskJobRunner obj's underlying member method code with example usage: obj._log_return_code_metric(return_code) without return types