async def call_method(
        self,
        name: str,
        params: _Any,
        resource: _Optional[_Path] = None,
    ) -> _Tuple[_Any, _Optional[_Path]]:
        """
        Asynchronously call a method on the remote service.

        This method is responsible for invoking a named method on the remote service,
        passing the provided parameters, and optionally handling a resource.

        Parameters
        ----------
        name: str
            The name of the method to be called on the remote service.

        params: Any
            The parameters to be passed to the remote method. This can be of any type, depending on what the remote method expects.


        resource: Optional[Path]
            A path to a resource that may be required or modified by the method call. Defaults to None.

        Returns
        -------
        Tuple[Any, Optional[Path]]
            A tuple containing:
                - The result of the method call (Any type)
                - An optional Path object, which may represent a new or modified resource
        """
        pass

        Asynchronously call a method on the remote service.

        This method is responsible for invoking a named method on the remote service,
        passing the provided parameters, and optionally handling a resource.

        Parameters
        ----------
        name: str
            The name of the method to be called on the remote service.

        params: Any
            The parameters to be passed to the remote method. This can be of any type, depending on what the remote method expects.


        resource: Optional[Path]
            A path to a resource that may be required or modified by the method call. Defaults to None.

        Returns
        -------
        Tuple[Any, Optional[Path]]
            A tuple containing:
                - The result of the method call (Any type)
                - An optional Path object, which may represent a new or modified resource
        
coremltools/models/ml_program/experimental/remote_device.py