docs: def create_checksum_object_from_stream(
      f, algorithm=d1_common.const.DEFAULT_CHECKSUM_ALGORITHM
  ):
      """Calculate the checksum of a stream.
  
      Args:
        f: file-like object
          Only requirement is a ``read()`` method that returns ``bytes``.
  
        algorithm: str
          Checksum algorithm, ``MD5`` or ``SHA1`` / ``SHA-1``.
  
      Returns:
        Populated Checksum PyXB object.
  
      """
      checksum_str = calculate_checksum_on_stream(f, algorithm)
      checksum_pyxb = d1_common.types.dataoneTypes.checksum(checksum_str)
      checksum_pyxb.algorithm = algorithm
      return checksum_pyxb