code: def find_permutation(A, B):
      permutation = []
      for col in range(A.shape[1]):
          Avals = A[..., col]
          for bcol in range(B.shape[1]):
              if np.all(Avals - B[..., bcol] == np.zeros(Avals.shape)):
                  permutation.append(bcol)
                  break
      return permutation
  
imports: import numpy
  import time
  import subprocess
  import math
label_desc: Use image node_id 9 for calling a global function with example usage: find_permutation(A, B) and returns: permutation