code: def _pprint_funsor(
      pprinter, object, stream, indent, allowance, context, level
  ):
      out = []
      try:
          old = quote.printoptions.copy()
          quote.printoptions[
              "threshold"
          ] = 0  # Omit arrays from pprint.
          _quote_inplace(object, 0, out)
      finally:
          quote.printoptions.update(old)
  
      # This depends on internals of the pprint.PrettyPrinter class.
      write = stream.write
      for i, (extra_indent, line) in enumerate(out):
          max_width = pprinter._width - indent - extra_indent
          if len(line) > max_width:
              line = line[: max_width - 3] + "..."
          if i > 0:
              write("\n")
              write(" " * (indent + extra_indent))
          write(line)
  
imports: import functools
  import inspect
  import pprint
  import re
  import sys
  import numpy
label_desc: Use image node_id 4 for calling a global function with example usage: _pprint_funsor(pprinter, object, stream, indent, allowance, context, level) without return types