code: def getSparseModel(X, Y, isFITC=False):
      if isFITC:
          m = gpflow.models.GPRFITC(
              (X, Y), kernel=getKernel(), inducing_variable=X.copy()
          )
      else:
          m = gpflow.models.SGPR(
              (X, Y), kernel=getKernel(), inducing_variable=X.copy()
          )
      return m
  
file_path: GPflow/doc/sphinx/notebooks/theory/FITCvsVFE.py
imports: import numpy
  import tensorflow
  import gpflow
  from gpflow.ci_utils import reduce_in_tests
label_desc: Use image node_id 6 for calling a global function with example usage: getSparseModel(X, Y, isFITC) and returns: m