code: def fromlineno(self):
          
          # lineno is the line number of the first decorator, we want the def
          # statement lineno
          lineno = self.lineno
          if self.decorators is not None:
              lineno += sum(
                  node.tolineno - node.lineno + 1 for node in self.decorators.nodes
              )
  
          return lineno
docs: The first line that this node appears on in the source code.
  
          :type: int or None