code: def _nested_output(obj):
      '''
      Serialize obj and format for output
      '''
      nested.__opts__ = __opts__
      ret = nested.output(obj).rstrip()
      return ref _nested_output(obj):
      '''
      Serialize obj and format for output
      '''
      nested.__opts__ = __opts__
      ret = nested.output(obj).rstrip()
      return ret
docs: Serialize obj and format for output