@classmethod
def normalize(cls, obj):
    """Normalize an object, if possible, to conform to this type.

        Args:
            obj (object): Object to normalize.

        Returns:
            object: Normalized object.

        """
    if isinstance(obj, str):
        try:
            obj = cls.decode_data(obj, {'type': 'function'})
        except (ValueError, AttributeError):
            pass
    return obj
