def METHOD_NAME(self):
    if isinstance(self.node, Text):
        return "inline"
    elif self.node.children:
        if any([isinstance(child, Element) and \
                child.tag in BLOCK_ELEMENTS
                for child in self.node.children]):
            return "block"
        else:
            return "inline"
    else:
        return "block"