code: def from_bool(x: Any) -> bool:
      assert isinstance(x, bool)
      return x
  
imports: import json
  from dataclasses import dataclass
  from typing import Any
  from typing import Callable
  from typing import Dict
  from typing import List
  from typing import Optional
  from typing import Type
  from typing import TypeVar
  from typing import Union
  from typing import cast
  from greykite.common.python_utils import assert_equal
label_desc: Use image node_id 12 for calling a global function with example usage: from_bool(x) and returns: x