code: def _convert_bytes_to_int(bytes_str: str) -> int:
      """Convert human-readable byte format to an integer."""
      for suffix in _FORMAT_TO_RATIO:
          bytes_str = bytes_str.lower().strip()
          if bytes_str.lower().endswith(suffix):
              try:
                  return int(
                      float(bytes_str[0 : -len(suffix)])
                      * _FORMAT_TO_RATIO[suffix]
                  )
              except ValueError:
                  raise ValueError(
                      f"Unsupported value/suffix {bytes_str}. Supported suffix are "
                      f'{["b"] + list(_FORMAT_TO_RATIO.keys())}.'
                  )
      raise ValueError(
          f"The supported units are {_FORMAT_TO_RATIO.keys()}"
      )
  
label_desc: Use image node_id 1 for calling a global function with example usage: _convert_bytes_to_int(bytes_str) and returns: int