code: def ignore_dataframe_for_primitive(options, dataframe, groupby=False):
      # This logic handles whether given options ignore an dataframe or not
      def should_ignore_dataframe(option):
          if groupby:
              if (
                  "include_groupby_columns" not in option
                  or dataframe.ww.name
                  not in option["include_groupby_columns"]
              ):
                  if (
                      "include_groupby_dataframes" in option
                      and dataframe.ww.name
                      not in option["include_groupby_dataframes"]
                  ):
                      return True
                  elif (
                      "ignore_groupby_dataframes" in option
                      and dataframe.ww.name
                      in option["ignore_groupby_dataframes"]
                  ):
                      return True
          if (
              "include_columns" in option
              and dataframe.ww.name in option["include_columns"]
          ):
              return False
          elif "include_dataframes" in option:
              return (
                  dataframe.ww.name not in option["include_dataframes"]
              )
          elif dataframe.ww.name in option["ignore_dataframes"]:
              return True
          else:
              return False
  
      return any(
          [should_ignore_dataframe(option) for option in options]
      )
  
file_path: featuretools/featuretools/primitives/options_utils.py
imports: import logging
  import warnings
  from itertools import permutations
  from featuretools import primitives
  from featuretools.feature_base import IdentityFeature
label_desc: Use image node_id 8 for calling a global function with example usage: ignore_dataframe_for_primitive(options, dataframe, groupby) and returns: any, False, unknown, True, True, False, True