@classmethod<EOL><INDENT>def getInferenceTypeFromLabel(cls, label):<DEDENT>
infType, _, _= label.partition(cls._LABEL_SEPARATOR)<EOL>if not InferenceType.validate(infType):<EOL><INDENT>return None<EOL><DEDENT>return infType<EOL>
Extracts the PredictionKind (temporal vs. nontemporal) from the given
metric label.

:param label: (string) for a metric spec generated by 
       :meth:`getMetricLabel`

:returns: (:class:`~nupic.frameworks.opf.opf_utils.InferenceType`)