code: def is_literal(type_: Type) -> bool:
      try:
          from typing import Literal  # type: ignore
  
          return is_generic(type_) and type_.__origin__ == Literal
      except ImportError:
          return False
  
file_path: ray/python/ray/_private/thirdparty/dacite/types.py
imports: from dataclasses import InitVar
  from typing import Type, Any, Optional, Union, Collection, TypeVar, Dict, Callable, Mapping, List, Tuple
label_desc: Use image node_id 7 for calling a global function with example usage: is_literal(type_) and returns: unknown, False