code: def _ilr_transform(barycentric):
      """
      Perform Isometric Log-Ratio on barycentric (compositional) data.
  
      Parameters
      ----------
      barycentric: ndarray of shape (3, N)
          Barycentric coordinates.
  
      References
      ----------
      "An algebraic method to compute isometric logratio transformation and
      back transformation of compositional data", Jarauta-Bragulat, E.,
      Buenestado, P.; Hervada-Sala, C., in Proc. of the Annual Conf. of the
      Intl Assoc for Math Geology, 2003, pp 31-30.
      """
      barycentric = np.asarray(barycentric)
      x_0 = np.log(barycentric[0] / barycentric[1]) / np.sqrt(2)
      x_1 = (
          1.0
          / np.sqrt(6)
          * np.log(
              barycentric[0] * barycentric[1] / barycentric[2] ** 2
          )
      )
      ilr_tdata = np.stack((x_0, x_1))
      return ilr_tdata
  
imports: from __future__ import absolute_import
  import plotly.colors
  from plotly.graph_objs import graph_objs
  from plotly import exceptions, optional_imports
  from plotly import optional_imports
  from plotly.graph_objs import graph_objs
  from skimage import measure
label_desc: Use image node_id 3 for calling a global function with example usage: _ilr_transform(barycentric) and returns: ilr_tdata