code: def _tavella_randell_nonuniform_grid(
      x_min, x_max, x_star, num_grid_points, alpha, dtype
  ):
      """Creates non-uniform grid clustered around a specified point.
  
      Args:
        x_min: A real `Tensor` of shape `(dim,)` specifying the lower limit of the
          grid.
        x_max: A real `Tensor` of same shape and dtype as `x_min` specifying the
          upper limit of the grid.
        x_star: A real `Tensor` of same shape and dtype as `x_min` specifying the
          location on the grid around which higher grid density is desired.
        num_grid_points: A scalar integer `Tensor` specifying the number of points
          on the grid.
        alpha: A scalar parameter which controls the degree of non-uniformity of the
          grid. The smaller values of `alpha` correspond to greater degree of
          clustering around `x_star`.
        dtype: The default dtype to use when converting values to `Tensor`s.
  
      Returns:
        A real `Tensor` of shape `(dim, num_grid_points+1)` containing the
        non-uniform grid.
      """
      c1 = tf.math.asinh((x_min - x_star) / alpha)
      c2 = tf.math.asinh((x_max - x_star) / alpha)
      i = tf.expand_dims(
          tf.range(0, num_grid_points + 1, 1, dtype=dtype), axis=-1
      )
      grid = x_star + alpha * tf.math.sinh(
          c2 * i / num_grid_points + c1 * (1 - i / num_grid_points)
      )
      # reshape from (num_grid_points+1, dim) to (dim, num_grid_points+1)
      return tf.transpose(grid)
  
imports: import functools
  import numpy
  import tensorflow.compat.v2
  from tf_quant_finance import datetime
  from tf_quant_finance import math
  from tf_quant_finance import utils
  from tf_quant_finance.experimental import local_volatility
  from tf_quant_finance.experimental.pricing_platform.framework.market_data import utils
  from tf_quant_finance.math import pde
  from tf_quant_finance.math.interpolation import linear
  from tf_quant_finance.models import generic_ito_process
label_desc: Use image node_id 4 for calling a global function with example usage: _tavella_randell_nonuniform_grid(x_min, x_max, x_star, num_grid_points, alpha, dtype) and returns: tf