code: def load(
      fp: BinaryIO, /, *, parse_float: ParseFloat = float
  ) -> dict[str, Any]:
      """Parse TOML from a binary file object."""
      b = fp.read()
      try:
          s = b.decode()
      except AttributeError:
          raise TypeError(
              "File must be opened in binary mode, e.g. use `open('foo.toml', 'rb')`"
          ) from None
      return loads(s, parse_float=parse_float)
  
imports: from __future__ import annotations
  from collections.abc import Iterable
  import string
  from types import MappingProxyType
  from typing import Any, BinaryIO, NamedTuple
  from ._re import RE_DATETIME, RE_LOCALTIME, RE_NUMBER, match_to_datetime, match_to_localtime, match_to_number
  from ._types import Key, ParseFloat, Pos
label_desc: Use image node_id 1 for calling a global function with example usage: load() and returns: loads