def METHOD_NAME(self, source_path: HostPath, target_path: DevicePath = None, **_) -> None:
    """Copies file to pyboard.
    Args:
        source_path (str): path to file
        target_path (str, optional): dest on pyboard. Defaults to None.
            If None, file is copied to pyboard root.
    Returns:
        str: path to dest on pyboard
    """
    src_path = Path(source_path).resolve()
    _dest = target_path or src_path.name
    dest = self.resolve_path(_dest)
    self._rsh.cp(str(src_path), str(dest))