code: def _is_inline(self, element):
          
          if element.tag not in {etree.Comment, etree.ProcessingInstruction} and element.tag.lower() in self.inline_elements:
              return True
          return False
docs: Return True if an element is inline.