code: def has_spatialite():
      try:
          find_spatialite()
          return True
      except SpatialiteNotFound:
          return False
  
imports: from datasette.app import Datasette
  from datasette.utils import find_spatialite, SpatialiteNotFound, SPATIALITE_FUNCTIONS
  from .utils import has_load_extension
  import pytest
label_desc: Use image node_id 1 for calling a global function with example usage: has_spatialite() and returns: True, False