code: def get_filters(component):
      
      def inner(c, filters=None):
          filters = filters or set()
          if not ENABLED:
              return filters
  
          if not plugins.is_datasource(c):
              return filters
  
          if c in FILTERS:
              filters |= FILTERS[c]
  
          for d in dr.get_dependents(c):
              filters |= inner(d, filters)
          return filters
  
      if component not in _CACHE:
          _CACHE[component] = inner(component)
      return _CACHE[component]
docs: Get the set of filters for the given datasource.
  
      Filters added to a ``RegistryPoint`` will be applied to all datasources that
      implement it. Filters added to a datasource implementation apply only to
      that implementation.
  
      For example, a filter added to ``Specs.ps_auxww`` will apply to
      ``DefaultSpecs.ps_auxww``, ``InsightsArchiveSpecs.ps_auxww``,
      ``SosSpecs.ps_auxww``, etc. But a filter added to ``DefaultSpecs.ps_auxww``
      will only apply to ``DefaultSpecs.ps_auxww``. See the modules in
      ``insights.specs`` for those classes.
  
      Args:
          component (a datasource): The target datasource
  
      Returns:
          set: The set of filters defined for the datasource