code: def _make_pair(x: int | tuple[int, int]) -> tuple[int, int]:
      return (x, x) if isinstance(x, int) else x
  
imports: from __future__ import annotations
  import itertools
  import warnings
  from typing import Any, Optional
  import torch
  import torch.nn.functional
  from torch import nn
  from torch.utils import checkpoint
  from kornia.contrib.models.common import DropPath, LayerNorm2d, window_partition, window_unpartition
  from kornia.core import Module, Tensor
  from kornia.core.check import KORNIA_CHECK
label_desc: Use image node_id 1 for calling a global function with example usage: _make_pair(x) and returns: unknown