code: def permute_point(p, permutation=None):
      """
      Permutes the point according to the permutation keyword argument. The
      default permutation is "012" which does not change the order of the
      coordinate. To rotate counterclockwise, use "120" and to rotate clockwise
      use "201"."""
      if not permutation:
          return p
      return [p[int(permutation[i])] for i in range(len(p))]
  
file_path: python-ternary/ternary/helpers.py
imports: import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: permute_point(p, permutation) and returns: unknown, p