parameters: (self, elem)
docstring: Adjust header level according to base level.
docstring_summary: Adjust header level according to base level.
docstring_tokens: Adjust header level according to base level .
function: def set_level(self, elem):
          ''' Adjust header level according to base level. '''
          level = int(elem.tag[-1]) + self.base_level
          if level > 6:
              level = 6
          elem.tag = 'h%d' % level
function_tokens: def set_level ( self , elem ) : level = int ( elem . tag [ - 1 ] ) + self . base_level if level > 6 : level = 6 elem . tag = 'h%d' % level