code: def _generate_distance_computation(int_type, dist_int_type):
      """
      Compute euclidean distance from current coordinate (ind_0, ind_1, ind_2) to
      the coordinates of the nearest point (z, y, x)."""
      return f"""
      {int_type} tmp = z - ind_0;
      {dist_int_type} sq_dist = tmp * tmp;
      tmp = y - ind_1;
      sq_dist += tmp * tmp;
      tmp = x - ind_2;
      sq_dist += tmp * tmp;
      dist[i] = sqrt(static_cast<F>(sq_dist));
      """
  
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 8 for calling a global function with example usage: _generate_distance_computation(int_type, dist_int_type) and returns: str, int_type, str, dist_int_type, str