parameters: (cls, init_method)
return_statement: return cls._initialisers[init_method]
docstring: :param init_method: a CentroidInitialization value representing the init
        method requested
      :return: A concrete implementation of AbstractCentroidsInitialisation
      :raises: ValueError if the requested centroid initialization method is not
        recognised
docstring_summary: :param init_method: a CentroidInitialization value representing the init
        method requested
      :return: A concrete implementation of AbstractCentroidsInitialisation
      :raises: ValueError if the requested centroid initialization method is not
        recognised
docstring_tokens: : param init_method : a CentroidInitialization value representing the init method requested : return : A concrete implementation of AbstractCentroidsInitialisation : raises : ValueError if the requested centroid initialization method is not recognised
function: def get_centroid_initializer(cls, init_method):
      """
      :param init_method: a CentroidInitialization value representing the init
        method requested
      :return: A concrete implementation of AbstractCentroidsInitialisation
      :raises: ValueError if the requested centroid initialization method is not
        recognised
      """
      if not cls.init_is_supported(init_method):
        raise ValueError(
            "Unknown initialisation method: {init_method}. Allowed values are : "
            "{allowed}".format(
                init_method=init_method,
                allowed=','.join(cls._initialisers.keys())
            ))
  
      return cls._initialisers[init_method]
function_tokens: def get_centroid_initializer ( cls , init_method ) : if not cls . init_is_supported ( init_method ) : raise ValueError ( "Unknown initialisation method: {init_method}. Allowed values are : " "{allowed}" . format ( init_method = init_method , allowed = ',' . join ( cls . _initialisers . keys ( ) ) ) ) return cls . _initialisers [ init_method ]