code: def _raise_check_aggregation(aggregation: str):
          
          if aggregation not in ComputeStats.EXTRA_AGGREGATIONS and not hasattr(np, aggregation):
              raise ValueError('Aggregation `{}` is not a NumPy function or a member '
                               'of EXTRA_AGGREGATIONS.'.format(aggregation))
docs: Check whether the given aggregation is present in NumPy or it is one of EXTRA_AGGREGATIONS.
  
          :param aggregation: the aggregation name
          :raise ValueError: if the specified aggregation is not supported or found in NumPy