code: def test_no_metric_symmetry():
      # no metric symmetry
      # A^d1_d0 * A^d0_d1; ord = [d0,-d0,d1,-d1]; g= [2,1,0,3,4,5]
      # T_c = A^d0_d1 * A^d1_d0; can = [0,3,2,1,4,5]
      g = Permutation([2, 1, 0, 3, 4, 5])
      can = canonicalize(
          g,
          list(range(4)),
          None,
          [[], [Permutation(list(range(4)))], 2, 0],
      )
      assert can == [0, 3, 2, 1, 4, 5]
  
      # A^d1_d2 * A^d0_d3 * A^d2_d1 * A^d3_d0
      # ord = [d0,-d0,d1,-d1,d2,-d2,d3,-d3]
      #        0    1  2  3  4   5   6   7
      # g = [2,5,0,7,4,3,6,1,8,9]
      # T_c = A^d0_d1 * A^d1_d0 * A^d2_d3 * A^d3_d2
      # can = [0,3,2,1,4,7,6,5,8,9]
      g = Permutation([2, 5, 0, 7, 4, 3, 6, 1, 8, 9])
      # can = canonicalize(g, list(range(8)), 0, [[], [list(range(4))], 4, 0])
      # assert can == [0, 2, 3, 1, 4, 6, 7, 5, 8, 9]
      can = canonicalize(
          g,
          list(range(8)),
          None,
          [[], [Permutation(list(range(4)))], 4, 0],
      )
      assert can == [0, 3, 2, 1, 4, 7, 6, 5, 8, 9]
  
      # A^d0_d2 * A^d1_d3 * A^d3_d0 * A^d2_d1
      # g = [0,5,2,7,6,1,4,3,8,9]
      # T_c = A^d0_d1 * A^d1_d2 * A^d2_d3 * A^d3_d0
      # can = [0,3,2,5,4,7,6,1,8,9]
      g = Permutation([0, 5, 2, 7, 6, 1, 4, 3, 8, 9])
      can = canonicalize(
          g,
          list(range(8)),
          None,
          [[], [Permutation(list(range(4)))], 4, 0],
      )
      assert can == [0, 3, 2, 5, 4, 7, 6, 1, 8, 9]
  
      g = Permutation(
          [12, 7, 10, 3, 14, 13, 4, 11, 6, 1, 2, 9, 0, 15, 8, 5, 16, 17]
      )
      can = canonicalize(
          g,
          list(range(16)),
          None,
          [[], [Permutation(list(range(4)))], 8, 0],
      )
      assert can == [
          0,
          3,
          2,
          5,
          4,
          7,
          6,
          1,
          8,
          11,
          10,
          13,
          12,
          15,
          14,
          9,
          16,
          17,
      ]
  
file_path: sympy/sympy/combinatorics/tests/test_tensor_can.py
imports: from sympy.combinatorics.permutations import Permutation, Perm
  from sympy.combinatorics.tensor_can import perm_af_direct_product, dummy_sgs, riemann_bsgs, get_symmetric_group_sgs, canonicalize, bsgs_direct_product
  from sympy.combinatorics.testutil import canonicalize_naive, graph_certificate
  from sympy.testing.pytest import skip, XFAIL
label_desc: Use image node_id 6 for calling a global function with example usage: test_no_metric_symmetry() without return types