code: def _get_decode3d_code(size_max, int_type=""):
      # bit shifts here must match those used in the encode3d kernel
      if size_max > 1024:
          code = f"""
          {int_type} x = (encoded >> 40) & 0xfffff;
          {int_type} y = (encoded >> 20) & 0xfffff;
          {int_type} z = encoded & 0xfffff;
          """
      else:
          code = f"""
          {int_type} x = (encoded >> 20) & 0x3ff;
          {int_type} y = (encoded >> 10) & 0x3ff;
          {int_type} z = encoded & 0x3ff;
          """
      return code
  
imports: import math
  import os
  import cupy
  import numpy
  from ._util import _get_inttype
  from ._pba_2d import _check_distances, _check_indices, _distance_tranform_arg_check, _generate_indices_ops, _generate_shape, _get_block_size, lcm
label_desc: Use image node_id 4 for calling a global function with example usage: _get_decode3d_code(size_max, int_type) and returns: code