code: def __init__(
      self,
      transfer: Transfer,
      *,
      files_listener: Optional[Callable[[int], None]] = None,
      bytes_listener: Optional[Callable[[int], None]] = None,
  ):
      self._transfer = transfer
      if isinstance(transfer.src, str):
          self._source_report = SourceReport(
              transfer.src,
              files_listener=files_listener,
              bytes_listener=bytes_listener,
          )
      else:
          self._source_report = [
              SourceReport(
                  s,
                  files_listener=files_listener,
                  bytes_listener=bytes_listener,
              )
              for s in transfer.src
          ]
      self._exception: Optional[Exception] = None
  
imports: from typing import Any, AsyncIterator, Awaitable, Optional, List, Union, Dict, Callable, Tuple
  import os
  import os.path
  import asyncio
  import functools
  import humanize
  from ...utils import retry_transient_errors, url_basename, url_join, bounded_gather2, time_msecs, humanize_timedelta_msecs
  from ..weighted_semaphore import WeightedSemaphore
  from .exceptions import FileAndDirectoryError, UnexpectedEOFError
  from .fs import MultiPartCreate, FileStatus, AsyncFS, FileListEntry
label_desc: Use image node_id 1 to create a new TransferReport object  with example: obj = TransferReport(transfer)