code: def _create_new_permutation(
      decomposition: Dict[str, List[int]]
  ) -> List[int]:
      # make contiguous and ordered
      permutation = []
      for active_parameters in decomposition.values():
          sorted_indices = sorted(active_parameters)
          permutation.extend(sorted_indices)
      return permutation
  
imports: from typing import Any, Dict, List, Optional
  import torch
  from gpytorch.constraints import Positive
  from gpytorch.kernels.kernel import Kernel
  from gpytorch.kernels.matern_kernel import MaternKernel
  from gpytorch.priors.torch_priors import GammaPrior
  from linear_operator.operators import DiagLinearOperator
  from linear_operator.operators.dense_linear_operator import DenseLinearOperator
  from torch import Tensor
  from torch.nn import ModuleList
label_desc: Use image node_id 4 for calling a global function with example usage: _create_new_permutation(decomposition) and returns: permutation