code: def setup_user_cfg_cls(cls):
      from ...utils.enter_config import UserConfig
  
      class ApplyGraphPredUserConfig(UserConfig):
          data: DataFactory.filter(
              "graphpred"
          ).get_pydantic_config() = Field(..., discriminator="name")
          general_pipeline: ApplyGraphpredPipelineCfg = (
              ApplyGraphpredPipelineCfg()
          )
  
      cls.user_cfg_cls = ApplyGraphPredUserConfig
  
file_path: dgl/dglgo/dglgo/apply_pipeline/graphpred/gen.py
imports: from copy import deepcopy
  from pathlib import Path
  from typing import Optional
  import ruamel.yaml
  import torch
  import typer
  from jinja2 import Template
  from pydantic import BaseModel, Field
  from ...utils.factory import ApplyPipelineFactory, DataFactory, GraphModelFactory, PipelineBase
  from ...utils.yaml_dump import deep_convert_dict, merge_comment
label_desc: Use image node_id 2 for calling the ApplyGraphpredPipeline obj's underlying member method code with example usage: obj.setup_user_cfg_cls(cls) without return types