code: def to_bool(value):
      from .config_schema import Bool
  
      return Bool(value)
  
imports: import os
  import re
  from contextlib import contextmanager
  from functools import partial
  from typing import TYPE_CHECKING, Dict, Optional
  from funcy import compact, memoize, re_find
  from dvc.exceptions import DvcException, NotDvcRepoError
  from dvc.log import logger
  from .utils.objects import cached_property
label_desc: Use image node_id 2 for calling a global function with example usage: to_bool(value) and returns: Bool