code: def set_location(node, lineno, col_offset):
      
      def _fix(node, lineno, col_offset):
          if "lineno" in node._attributes:
              node.lineno = lineno
          if "col_offset" in node._attributes:
              node.col_offset = col_offset
          for child in ast.iter_child_nodes(node):
              _fix(child, lineno, col_offset)
      _fix(node, lineno, col_offset)
      return node
docs: Set node location information recursively.