code: def _negate_boolean(boolean: BooleanValues) -> BooleanValues:
      """Negates boolean expression (False -> True, True -> False)."""
      if boolean == BooleanValues.TRUE:
          return BooleanValues.FALSE
      if boolean == BooleanValues.FALSE:
          return BooleanValues.TRUE
      return boolean
  
imports: from __future__ import absolute_import
  from ast import literal_eval
  from enum import Enum
  from typing import Dict, List, Optional, Union, Any
  from sagemaker.jumpstart.types import JumpStartDataHolderType
label_desc: Use image node_id 2 for calling a global function with example usage: _negate_boolean(boolean) and returns: boolean, BooleanValues, BooleanValues