docs: def deserialize(klass, data):
      """Helper function to access a method that creates objects of a
      given `klass` with the received `data`.
      """
      handler = DESERIALIZE_REGISTRY.get(klass)
      if handler:
          return handler(data)
      raise TypeError("There is no deserializer registered to handle "
                      "instances of '{}'".format(klass.__name__))