oss-torch-connector/osstorchconnector/oss_iterable_dataset.py [118:150]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            transform=transform, cred_provider=cred_provider
        )

    @classmethod
    def from_manifest_file(
        cls,
        manifest_file_path: str,
        manifest_parser: Callable[[io.IOBase], Iterable[Tuple[str, str]]],
        oss_base_uri: str,
        endpoint: str,
        *,
        cred_path: str = "",
        cred_provider: Any = None,
        config_path: str = "",
        transform: Callable[[DataObject], Any] = identity,
    ):
        """Returns an instance of OssIterableDataset using manifest file provided.

        Args:
          manifest_file_path(str): OSS URI or local path of manifest file.
          manifest_parser: A callable which takes an io.IOBase object and returns an iterable of (object_uri, label).
          oss_base_uri(str): The base URI of the OSS object in manifest file.
          endpoint(str): Endpoint of the OSS bucket where the objects are stored.
          cred_path(str): Credential info of the OSS bucket where the objects are stored.
          config_path(str): Configuration file path of the OSS connector.
          transform: Optional callable which is used to transform an DataObject into the desired type.
          cred_provider: OSS credential provider.

        Returns:
            OssIterableDataset: An IterableStyle dataset created from OSS objects.
        """
        log.info(f"Building {cls.__name__} from_manifest_file")
        return cls(
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



oss-torch-connector/osstorchconnector/oss_map_dataset.py [134:166]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
            transform=transform, cred_provider=cred_provider
        )

    @classmethod
    def from_manifest_file(
        cls,
        manifest_file_path: str,
        manifest_parser: Callable[[io.IOBase], Iterable[Tuple[str, str]]],
        oss_base_uri: str,
        endpoint: str,
        *,
        cred_path: str = "",
        cred_provider: Any = None,
        config_path: str = "",
        transform: Callable[[DataObject], Any] = identity,
    ):
        """Returns an instance of OssMapDataset using manifest file provided.

        Args:
          manifest_file_path(str): OSS URI or local path of manifest file.
          manifest_parser: A callable which takes an io.IOBase object and returns an iterable of (object_uri, label).
          oss_base_uri(str): The base URI of the OSS object in manifest file.
          endpoint(str): Endpoint of the OSS bucket where the objects are stored.
          cred_path(str): Credential info of the OSS bucket where the objects are stored.
          config_path(str): Configuration file path of the OSS connector.
          transform: Optional callable which is used to transform an DataObject into the desired type.
          cred_provider: OSS credential provider.

        Returns:
            OssMapDataset: A Map-Style dataset created from OSS objects.
        """
        log.info(f"Building {cls.__name__} from_manifest_file")
        return cls(
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



