docs: def output_diagnostics(env, result, verbose=0, **kwargs):
      """Output diagnostic information."""
  
      if verbose > 0:
          diagnostic_table = formatting.Table(['name', 'value'])
          diagnostic_table.add_row(['execution_time', '%fs' % (time.time() - START_TIME)])
  
          api_call_value = []
          for call in env.client.transport.get_last_calls():
              api_call_value.append("%s::%s (%fs)" % (call.service, call.method, call.end_time - call.start_time))
  
          diagnostic_table.add_row(['api_calls', api_call_value])
          diagnostic_table.add_row(['version', consts.USER_AGENT])
          diagnostic_table.add_row(['python_version', sys.version])
          diagnostic_table.add_row(['library_location', os.path.dirname(SoftLayer.__file__)])
  
          env.err(env.fmt(diagnostic_table))
  
      if verbose > 1:
          for call in env.client.transport.get_last_calls():
              call_table = formatting.Table(['', '{}::{}'.format(call.service, call.method)])
              nice_mask = ''
              if call.mask is not None:
                  nice_mask = call.mask
  
              call_table.add_row(['id', call.identifier])
              call_table.add_row(['mask', nice_mask])
              call_table.add_row(['filter', call.filter])
              call_table.add_row(['limit', call.limit])
              call_table.add_row(['offset', call.offset])
              env.err(env.fmt(call_table))
  
      if verbose > 2:
          for call in env.client.transport.get_last_calls():
              env.err(env.client.transport.print_reproduceable(call))