code: def _logfactorial(n):
      """Calculate natural logarithm of n!."""
      return math.lgamma(n + 1)
  
imports: import math
label_desc: Use image node_id 4 for calling a global function with example usage: _logfactorial(n) and returns: math