def __init__(
        self,
        device: Device,
        source: str,
    ) -> None:
        """
        Initialize a new DeviceCtlSocket instance.

        Parameters
        ----------
        device: Device
            The device object.

        working_dir: Path
            The base working directory for storing temporary files and resources.

        source: str
            The source identifier for the communication.
        """
        self.device = device
        self.working_directory = device.session.working_directory / str(_uuid.uuid4())
        self.working_directory.mkdir(parents=True, exist_ok=False)
        self.source = source
        self.requests_directory = self.working_directory / "requests"
        self.responses_directory = self.working_directory / "responses"

        Initialize a new DeviceCtlSocket instance.

        Parameters
        ----------
        device: Device
            The device object.

        working_dir: Path
            The base working directory for storing temporary files and resources.

        source: str
            The source identifier for the communication.
        
coremltools/models/ml_program/experimental/remote_device.py