code: def _kernel_valid(k):
      if isinstance(k, (list, tuple)):
          for ki in k:
              return _kernel_valid(ki)
      assert k >= 3 and k % 2
  
file_path: pytorch-image-models/timm/layers/selective_kernel.py
imports: import torch
  from torch import nn
  from .conv_bn_act import ConvNormActAa
  from .helpers import make_divisible
  from .trace_utils import _assert
label_desc: Use image node_id 1 for calling a global function with example usage: _kernel_valid(k) and returns: _kernel_valid