code: def stacklevel():
      
      pcapkit = f'{os.path.sep}pcapkit{os.path.sep}'
      tb = traceback.extract_stack()
      for index, tbitem in enumerate(tb):
          if pcapkit in tbitem[0]:
              break
      else:
          index = len(tb)
      return (index-1)
docs: Fetch current stack level.