class_docstr: The factory class for creating executors
class_docstr_tok: ["The","factory","class","for","creating","executors"]
code: def filter(self, filter_func):
      new_fac = ModelFactory()
      for name in self.registry:
          if filter_func(self.registry[name]):
              new_fac.registry[name] = self.registry[name]
              new_fac.code_registry[name] = self.code_registry[name]
      return new_fac
  
imports: import enum
  import inspect
  import logging
  from abc import ABC, abstractmethod, abstractstaticmethod
  from pathlib import Path
  from typing import Callable, Dict, List, Optional, Tuple, Union
  import yaml
  from dgl.dataloading.negative_sampler import GlobalUniform, PerSourceUniform
  from numpydoc import docscrape
  from pydantic import create_model, create_model_from_typeddict, Field
  from typing_extensions import Literal
  from .base_model import DGLBaseModel
label_desc: Use image node_id 11 for calling the ModelFactory obj's underlying member method code with example usage: obj.filter(filter_func) and returns: new_fac