code: def _compute_grouped_sigma(
      ungrouped_sigma: np.ndarray, groups: np.ndarray
  ) -> np.ndarray:
      """Sigma values for the groups.
  
      Returns sigma for the groups of parameter values in the argument
      ungrouped_metric where the group consists of no more than
      one parameter
  
      Parameters
      ----------
      ungrouped_sigma: np.ndarray
          Sigma values calculated without considering the groups
      groups: np.ndarray
          Array defining the distribution of groups
  
      Returns
      -------
      sigma: np.ndarray
          Sigma values for the groups.
      """
      sigma_agg = _compute_grouped_metric(ungrouped_sigma, groups)
  
      sigma = np.zeros(groups.shape[1], dtype=float)
      np.copyto(sigma, sigma_agg, where=groups.sum(axis=0) == 1)
      np.copyto(sigma, np.NAN, where=groups.sum(axis=0) != 1)
  
      return sigma
  
imports: from typing import Dict, List
  import numpy
  from scipy.stats import norm
  from .None import common_args
  from ..util import read_param_file, compute_groups_matrix, ResultDict, _define_problem_with_groups, _compute_delta, _check_groups
label_desc: Use image node_id 3 for calling a global function with example usage: _compute_grouped_sigma(ungrouped_sigma, groups) and returns: sigma