code: def _is_optional(cls):
      return (
          _get_class_type(cls) == Union and type(None) in cls.__args__
      )
  
imports: from enum import Enum
  from typing import Dict, List, Tuple, Union
label_desc: Use image node_id 2 for calling a global function with example usage: _is_optional(cls) and returns: unknown