code: def custom_filterset_factory(model, filterset_base_class=FilterSet, **meta):
      
      meta.update({"model": model})
      meta_class = type(str("Meta"), (object,), meta)
      filterset = type(
          str("%sFilterSet" % model._meta.object_name),
          (filterset_base_class, GrapheneFilterSetMixin),
          {"Meta": meta_class},
      )
      return filterset
docs: Create a filterset for the given model using the provided meta data