code: def _permutate_dtype_mapping(dtype_mapping_list):
      # Permutates in dtypes of dtype mapping.
      d = {}
      for in_dtypes, out_dtype in dtype_mapping_list:
          for in_dtypes_ in itertools.permutations(in_dtypes):
              d[in_dtypes_] = out_dtype
      return sorted(d.items())
  
imports: import itertools
  import numpy
  import chainerx
label_desc: Use image node_id 1 for calling a global function with example usage: _permutate_dtype_mapping(dtype_mapping_list) and returns: sorted