def METHOD_NAME(self):
    if self.lower_layer is None:
        raise RuntimeError("create_lower_layer or create_schc_protocol "
                           "should be called first")
    return self.lower_layer