code: def single_input(self, body):
          
          loc = None
          if body != []:
              loc = body[0].loc
          return ast.Interactive(body=body, loc=loc)
docs: single_input: NEWLINE | simple_stmt | compound_stmt NEWLINE