human
I wrote the below code

    @wraps(func)
    def _decorator(self, *args, **kwargs):
        if (not (self.getInferenceType() == InferenceType.TemporalAnomaly)):
            raise RuntimeError('Method    required    a    TemporalAnomaly    model.')
        if (self._getAnomalyClassifier() is None):
            raise RuntimeError('Model    does    not    support    this    command.    Model    mustbe    an    active    anomalyDetector    model.')
        return func(self, *args, **kwargs)
    return _decorator

What's a good function header?
 Here's a good function header?
assistant
#Here's a good function header.

def requireAnomalyModel(func):