code: def needs_sqlite(f, self, *a, **kw):
      """Decorator: return an empty list in the absence of sqlite."""
      if sqlite3 is None or not self.enabled:
          return []
      else:
          return f(self, *a, **kw)
  
imports: from __future__ import print_function
  import atexit
  import datetime
  import os
  import re
  import threading
  from traitlets.config.configurable import LoggingConfigurable
  from decorator import decorator
  from IPython.utils.decorators import undoc
  from IPython.paths import locate_profile
  from IPython.utils import py3compat
  from traitlets import Any, Bool, Dict, Instance, Integer, List, Unicode, TraitError, default, observe
  from warnings import warn
label_desc: Use image node_id 1 for calling a global function with example usage: needs_sqlite(f, ) and returns: list, f