code: def debug(type_, value, tb):
      if hasattr(sys, "ps1") or not sys.stderr.isatty():
          sys.__excepthook__(type_, value, tb)
      else:
          import traceback
          import pdb
  
          traceback.print_exception(type_, value, tb)
          print("\n")
          pdb.pm()
  
file_path: deepwalk/deepwalk/__main__.py
imports: import os
  import sys
  import random
  from io import open
  from argparse import ArgumentParser, FileType, ArgumentDefaultsHelpFormatter
  from collections import Counter
  from concurrent.futures import ProcessPoolExecutor
  import logging
  from .None import graph
  from .None import walks
  from gensim.models import Word2Vec
  from .skipgram import Skipgram
  from six import text_type
  from six import iteritems
  from six.moves import range
  import psutil
  from multiprocessing import cpu_count
label_desc: Use image node_id 1 for calling a global function with example usage: debug(type_, value, tb) without return types