code: def factorial(n):
      # 23 calls total
      # 170 ticks total, 150 ticks local
      # 3 primitive calls, 130, 20 and 20 ticks total
      # including 116, 17, 17 ticks local
      global TICKS
      if n > 0:
          TICKS += n
          return mul(n, factorial(n - 1))
      else:
          TICKS += 11
          return 1
  
file_path: cpython/Lib/test/profilee.py
imports: import sys
label_desc: Use image node_id 3 for calling a global function with example usage: factorial(n) and returns: mul, int