def receive_file_from_app(
        bundle_identifier: str,
        source: str,
        destination_path: _Path,
        device: Device,
    ) -> _DataTransferInfo:
        """
        Retrieve a file from a specific application's data container on the target device.

        This method uses the 'devicectl' command-line tool to copy a file from an application's
        data container on the specified device to the host machine.

        Parameters
        ----------
        bundle_identifier : str
            The bundle identifier of the source application on the device.
            This identifies the app's data container from which the file will be copied.

        source : str
            The source path of the file within the app's data container on the device.
            This path is relative to the app's container root.

        destination_path : Path
            The path on the host machine where the file should be saved.
            This should be a Path object pointing to the desired location for the received file.

        device : Device
            The source device from which the file will be retrieved. This object should have
            an 'identifier' attribute that uniquely identifies the device.

        Returns
        -------
        DataTransferInfo
            An object containing information about the completed file transfer, typically
            including:
            - source: The source path of the transferred file on the device.
            - destination: The destination path of the transferred file on the host machine.
        """
        command = (
            f"devicectl device copy from "
            f"-d {device.identifier} "
            f"--source {source} "
            f"{'' if device.type == DeviceType.MAC else '--user mobile '}"
            "--domain-type=appDataContainer "
            f"--domain-identifier={bundle_identifier} "
            f"--destination {destination_path.resolve()}"
        )
        json_data = _DeviceCtl._run_command(command=command)
        return _DeviceCtl._parse_data_transfer_result(json_data=json_data)

        Retrieve a file from a specific application's data container on the target device.

        This method uses the 'devicectl' command-line tool to copy a file from an application's
        data container on the specified device to the host machine.

        Parameters
        ----------
        bundle_identifier : str
            The bundle identifier of the source application on the device.
            This identifies the app's data container from which the file will be copied.

        source : str
            The source path of the file within the app's data container on the device.
            This path is relative to the app's container root.

        destination_path : Path
            The path on the host machine where the file should be saved.
            This should be a Path object pointing to the desired location for the received file.

        device : Device
            The source device from which the file will be retrieved. This object should have
            an 'identifier' attribute that uniquely identifies the device.

        Returns
        -------
        DataTransferInfo
            An object containing information about the completed file transfer, typically
            including:
            - source: The source path of the transferred file on the device.
            - destination: The destination path of the transferred file on the host machine.
        
coremltools/models/ml_program/experimental/remote_device.py