code: def _tucker_congruence(A, B):
      As = A / tl.norm(A, axis=0)
      Bs = B / tl.norm(B, axis=0)
  
      return tl.dot(tl.transpose(As), Bs)
  
file_path: tensorly/tensorly/metrics/tests/test_factors.py
imports: import itertools
  import pytest
  import tensorly
  from ..factors import congruence_coefficient
  from tensorly.random import random_cp
  from tensorly.cp_tensor import cp_permute_factors
label_desc: Use image node_id 1 for calling a global function with example usage: _tucker_congruence(A, B) and returns: tl