code: def get_distance(x):
      """Computes the Euclidean distance between observations
  
      The input is an array of shape `(n, p)` where rows represent observations and columns represent
      variables. The output is an array of shape `(n, n)` where the values represent the Euclidean
      distance between observations considering all the `p` variables.
      """
      x = as_matrix(x)
      out = 0
      for i in range(x.shape[1]):
          out = out + np.subtract.outer(x[:, i], x[:, i]) ** 2
      return np.sqrt(out)
  
file_path: bambi/bambi/transformations.py
imports: import numpy
  import pandas
  from formulae.transforms import register_stateful_transform
label_desc: Use image node_id 8 for calling a global function with example usage: get_distance(x) and returns: np