def METHOD_NAME(
    self, mock_OCI, mock_path, mock_md5, mock_exists
):
    mock_exists.return_value = True
    oci = Mock()
    mock_OCI.new.return_value = oci
    mock_md5.return_value = Mock()
    with patch.dict('os.environ', {'HOME': '../data'}):
        oci_import = RootImportOCI(
            'root_dir', Uri('docker:image:tag'),
            {'archive_transport': 'docker-archive'}
        )
    with self._caplog.at_level(logging.WARNING):
        oci_import.sync_data()
        mock_OCI.new.assert_called_once_with()
        oci.import_container_image.assert_called_once_with(
            'docker:image:tag'
        )
        oci.unpack.assert_called_once_with()
        oci.import_rootfs.assert_called_once_with(
            'root_dir'
        )
        mock_md5.assert_called_once_with('root_dir/image/imported_root')