you should make this:

```Python
except ImportError:
    match_template = None
```

Then do a check in the function that uses it, which is like:

```Python
if match_template is None:
    raise ImportError("can't import skimage....")
```