code: def _get_distance_kernel_code(
      int_type, dist_int_type, raw_out_var=True
  ):
      code = _generate_shape(
          ndim=2,
          int_type=int_type,
          var_name="dist",
          raw_var=raw_out_var,
      )
      code += _generate_indices_ops(ndim=2, int_type=int_type)
      code += f"""
      {int_type} tmp;
      {dist_int_type} sq_dist;
      tmp = y[i] - ind_0;
      sq_dist = tmp * tmp;
      tmp = x[i] - ind_1;
      sq_dist += tmp * tmp;
      dist[i] = sqrt(static_cast<F>(sq_dist));
      """
      return code
  
imports: import math
  import numbers
  import os
  import cupy
  from ._util import _get_inttype
label_desc: Use image node_id 10 for calling a global function with example usage: _get_distance_kernel_code(int_type, dist_int_type, raw_out_var) and returns: code