code: def filter_opts(eltype, options, backend="bokeh"):
      opts = getattr(hv.Store.options(backend), eltype)
      allowed = [
          k
          for g in opts.groups.values()
          for k in list(g.allowed_keywords)
      ]
      opts = {k: v for k, v in options.items() if k in allowed}
      return opts
  
imports: import sys
  from collections.abc import Hashable
  from functools import wraps
  from packaging.version import Version
  from types import FunctionType
  import bokeh
  import numpy
  import pandas
  import param
  import holoviews
label_desc: Use image node_id 25 for calling a global function with example usage: filter_opts(eltype, options, backend) and returns: opts