code: def get_bool_field(field_map, field_name, is_single_field=False):
      """Returns the bool value(s) stored in `field_map[field_name]`.
  
      If the field_name is not present in field_map, the empty list is returned.
  
      Args:
        field_map: Map(str --> ListValue) of interest.
        field_name: str. The name of the field to extract bool values from.
        is_single_field: bool. If True, return the first bool value stored (it
          should be the only one in the field). Otherwise, return the list of
          bools.
  
      Returns:
        The bool value(s) stored in the field_map under this field_name.
      """
      return _get_field_with_type(
          field_map, field_name, is_single_field, _BOOL_TYPE
      )
  
file_path: deepvariant/third_party/nucleus/util/struct_utils.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import types
  from third_party.nucleus.protos import struct_pb2
label_desc: Use image node_id 15 for calling a global function with example usage: get_bool_field(field_map, field_name, is_single_field) and returns: _get_field_with_type