code: def get_dataset_enum(self):
      enum_class = enum.Enum(
          "DatasetName",
          {v["name"]: k for k, v in self.registry.items()},
      )
      return enum_class
  
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 3 for calling the DataFactoryClass obj's underlying member method code with example usage: obj.get_dataset_enum() and returns: enum_class