code: def filter(self, pipeline_name):
      allowed_name = self.pipeline_allowed[pipeline_name]
      new_registry = {
          k: v for k, v in self.registry.items() if k in allowed_name
      }
      d = DataFactoryClass()
      d.registry = new_registry
      d.pipeline_name = pipeline_name
      return d
  
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 12 for calling the DataFactoryClass obj's underlying member method code with example usage: obj.filter(pipeline_name) and returns: d