code: def get_channel_dimension_axis(image: np.ndarray) -> int:
      """
      Returns the channel dimension axis of the image.
  
      Args:
          image (`np.ndarray`):
              The image to get the channel dimension axis of.
  
      Returns:
          The channel dimension axis of the image.
      """
      channel_dim = infer_channel_dimension_format(image)
      if channel_dim == ChannelDimension.FIRST:
          return image.ndim - 3
      elif channel_dim == ChannelDimension.LAST:
          return image.ndim - 1
      raise ValueError(f"Unsupported data format: {channel_dim}")
  
imports: import os
  from typing import TYPE_CHECKING, List, Tuple, Union
  import numpy
  from packaging import version
  import requests
  from .utils import ExplicitEnum, is_jax_tensor, is_tf_tensor, is_torch_available, is_torch_tensor, is_vision_available, to_numpy
  from .utils.constants import IMAGENET_DEFAULT_MEAN, IMAGENET_DEFAULT_STD, IMAGENET_STANDARD_MEAN, IMAGENET_STANDARD_STD
label_desc: Use image node_id 6 for calling a global function with example usage: get_channel_dimension_axis(image) and returns: unknown, unknown