code: def __init__(
      self,
      source,
      *,
      files_listener: Optional[Callable[[int], None]] = None,
      bytes_listener: Optional[Callable[[int], None]] = None,
  ):
      self._source = source
      self._files_listener = files_listener
      self._bytes_listener = bytes_listener
      self._source_type: Optional[str] = None
      self._files = 0
      self._bytes = 0
      self._errors = 0
      self._complete = 0
      self._first_file_error: Optional[Dict[str, Any]] = None
      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 SourceReport object  with example: obj = SourceReport(source)