code: def _get_cudnn_tensor_layout_x(x_layout):
      if x_layout == chainer.memory_layouts.CUDNN_CHANNEL_FIRST_X:
          return cuda.cudnn.CUDNN_TENSOR_NCHW
      assert x_layout == chainer.memory_layouts.CUDNN_CHANNEL_LAST_X
      return cuda.cudnn.CUDNN_TENSOR_NHWC
  
imports: import binascii
  import functools
  import itertools
  import os
  import threading
  import time
  import typing
  import warnings
  import numpy
  import six
  import chainer
  from chainer import _backend
  from chainer.backends import _cpu
  from chainer.backends import intel64
  from chainer.configuration import config
  from chainer import types
  import chainerx
label_desc: Use image node_id 25 for calling a global function with example usage: _get_cudnn_tensor_layout_x(x_layout) and returns: cuda, cuda