def METHOD_NAME(self) -> Dict[str, Path]:
    """
    Lists the available channels in `/opt/ml/input/data`.
    Return:
    Dict of channel-names mapping to the corresponding path.
    When running in SageMaker, channels and are listed in
    `/opt/ml/config/inputdataconfig.json`. Thus, if this file is present,
    we take its content to determine which channels are available. To
    support a local development setup, we just list the contents of the
    data folder to get the available channels.
    """
    if self.inputdataconfig is not None:
        return {
            name: self.path.data / name
            for name in self.inputdataconfig.channel_names()
        }
    else:
        return {
            channel.name: channel for channel in self.path.data.iterdir()
        }