@staticmethod<EOL><INDENT>def getTemporalDelay(inferenceElement, key=None):<DEDENT>
<EOL>if inferenceElement in (InferenceElement.prediction,<EOL>InferenceElement.encodings):<EOL><INDENT>return <NUM_LIT:1><EOL><DEDENT>if inferenceElement in (InferenceElement.anomalyScore,<EOL>InferenceElement.anomalyLabel,<EOL>InferenceElement.classification,<EOL>InferenceElement.classConfidences):<EOL><INDENT>return <NUM_LIT:0><EOL><DEDENT>if inferenceElement in (InferenceElement.multiStepPredictions,<EOL>InferenceElement.multiStepBestPredictions):<EOL><INDENT>return int(key)<EOL><DEDENT>return <NUM_LIT:0><EOL>
Returns the number of records that elapse between when an inference is
        made and when the corresponding input record will appear. For example, a
        multistep prediction for 3 timesteps out will have a delay of 3


        Parameters:
        -----------------------------------------------------------------------

        inferenceElement:   The InferenceElement value being delayed
        key:                If the inference is a dictionary type, this specifies
                            key for the sub-inference that is being delayed