@classmethod
def from_type_str(cls, type_str, registry):
    """
        Used by ``ABIRegistry`` to get an appropriate encoder or decoder
        instance for the given type string and type registry.
        """
    raise NotImplementedError('Must implement `from_type_str`')
