def get_width(self, element):
parent = element.getparent()<EOL>if parent in self.width:<EOL><INDENT>return self.width[parent]<EOL><DEDENT>ret = <NUM_LIT:0><EOL>for sibling in parent.getchildren():<EOL><INDENT>w = len(self.get_name_str(sibling))<EOL>if w > ret:<EOL><INDENT>ret = w<EOL><DEDENT><DEDENT>self.width[parent] = math.ceil((ret + <NUM_LIT:3>) / <NUM_LIT>) * <NUM_LIT:3><EOL>return self.width[parent]<EOL>
get_width

        High-level api: Calculate how much indent is needed for a node.

        Parameters
        ----------

        element : `Element`
            A node in model tree.

        Returns
        -------

        int
            Start position from the left margin.