code: def _value_at_axis(value, axis):
      """Get the value for a particular axis.
  
      Args:
          value (tuple or list or int): Possible tuple of per-axis values.
          axis (int): Axis to get value for.
  
      Returns:
          int: the value at the available axis.
  
      """
      if not isinstance(value, (list, tuple)):
          return value
      if len(value) == 1:
          return value[0]
      else:
          return value[axis]
  
imports: import copy
  import math
  import warnings
  import torch
  from torch import nn
  import torch.nn.functional
label_desc: Use image node_id 18 for calling a global function with example usage: _value_at_axis(value, axis) and returns: value, value, value