class_docstr: Wrap a function to (maybe) use a (lazy) jit-compiled version.
class_docstr_tok: ["Wrap","a","function","to","(","maybe",")","use","a","(","lazy",")","jit-compiled","version","."]
docstr: Memoized compiled function.
docstr_tok: ["Memoized","compiled","function","."]
code: def numba_fn(self):
      """Memoized compiled function."""
      try:
          numba = importlib.import_module("numba")
          numba_fn = numba.jit(**self.kwargs)(self.function)
      except ImportError:
          numba_fn = self.function
      return numba_fn
  
imports: import functools
  import importlib
  import importlib.resources
  import re
  import warnings
  from functools import lru_cache
  import matplotlib.pyplot
  import numpy
  from numpy import newaxis
  from .rcparams import rcParams
label_desc: Use image node_id 2 for calling the maybe_numba_fn obj's underlying member method code with example usage: obj.numba_fn() and returns: numba_fn