Could even do this for the `if` blocks

```python
if _is_embedded_resource(v):
    _handle_embedded_resource
```