code: def get_literal_value(type_):
      if hasattr(type_, "__values__"):
          name = type_.__values__[0]
      elif hasattr(type_, "__args__"):
          name = type_.__args__[0]
      return name
  
file_path: dgl/dglgo/dglgo/utils/base_model.py
imports: import copy
  import enum
  from enum import Enum, IntEnum
  from typing import Optional
  from jinja2 import Template
  from pydantic import BaseModel, create_model, create_model, Field
label_desc: Use image node_id 1 for calling a global function with example usage: get_literal_value(type_) and returns: name