code: def interactive():
      """Simple function to interact with user"""
      print("Compute digits of pi with SymPy\n")
      base = int(input("Which base? (2-36, 10 for decimal) \n> "))
      digits = int(
          input("How many digits? (enter a big number, say, 10000)\n> ")
      )
      tofile = input(
          "Output to file? (enter a filename, or just press enter\nto print directly to the screen) \n> "
      )
      if tofile:
          tofile = open(tofile, "w")
      calculateit(pi, base, digits, tofile)
  
file_path: sympy/examples/advanced/pidigits.py
imports: from mpmath import libmp, pi
  import math
  import sys
  from time import perf_counter
label_desc: Use image node_id 3 for calling a global function with example usage: interactive() without return types