class_docstr: Airflow Kubernetes models are here for backwards compatibility reasons only.
  
  Ideally clients should use the kubernetes API
  and the process of
  
      client input -> Airflow k8s models -> k8s models
  
  can be avoided. All of these models implement the
  `attach_to_pod` method so that they integrate with the kubernetes client.
docstr: Attaches to pod.
  
  :param pod: A pod to attach this Kubernetes object to
  :return: The pod with the object attached
docstr_tok: ["Attaches","to","pod",".",":","param","pod",":","A","pod","to","attach","this","Kubernetes","object","to",":","return",":","The","pod","with","the","object","attached"]
code: def attach_to_pod(self, pod: k8s.V1Pod) -> k8s.V1Pod:
      """
      Attaches to pod.
  
      :param pod: A pod to attach this Kubernetes object to
      :return: The pod with the object attached
      """
  
file_path: airflow/airflow/providers/cncf/kubernetes/k8s_model.py
imports: from __future__ import annotations
  from abc import ABC, abstractmethod
  from functools import reduce
  from typing import TYPE_CHECKING
label_desc: Use image node_id 1 for calling the K8SModel obj's underlying member method code with example usage: obj.attach_to_pod(pod) without return types