code: def is_spark_dataframe(df):
      if not sparkml_installed():
          return False
  
      import pyspark
  
      if isinstance(df, pyspark.sql.DataFrame):
          return True
      else:
          return False
  
imports: from packaging.version import Version, parse
  from types import ModuleType
  import numpy
  import torch
  import os
  import warnings
  import shutil
  from hummingbird.ml.exceptions import ConstantError
label_desc: Use image node_id 21 for calling a global function with example usage: is_spark_dataframe(df) and returns: False, True, False