code: def _permutate_shapes(shapes_list):
      # Permutates input shapes
      permutated_shapes_set = set()
      for shapes in shapes_list:
          for permutated_shapes in itertools.permutations(shapes):
              permutated_shapes_set.add(permutated_shapes)
      return list(permutated_shapes_set)
  
imports: import itertools
  import unittest
  from cupy import testing
  from cupy_tests.core_tests.fusion_tests import fusion_utils
label_desc: Use image node_id 1 for calling a global function with example usage: _permutate_shapes(shapes_list) and returns: list