code: def _make_key_filter(use_ref):
      def key_filter(key):
          return (
              key in _non_gen_keys
              or (use_ref and key == "_ref_geometry")
              or (not use_ref and key != "_ref_geometry")
          )
  
file_path: pythreejs/pythreejs/core/Geometry.py
imports: from ipywidgets import register
  from .Geometry_autogen import Geometry
  from .._base.Three import ThreeWidget
label_desc: Use image node_id 1 for calling a global function with example usage: _make_key_filter(use_ref) and returns: unknown