Is there a way to remove unused imports for Python in VS Code? : <p>I would really like to know if there is some Extension in Visual Studio Code or other means that could help identify and remove any unused imports.</p>

<p>I have quite a large number of imports like this and it's getting close to 40 lines. I know some of them aren't in use, the problem is removing them safely.</p>

<pre><code>from django.core.mail import EmailMultiAlternatives, send_mail
from django.template.loader import render_to_string
from django.utils.html import strip_tags
from rest_framework import routers, serializers, viewsets, status
from rest_framework.views import APIView
from rest_framework.response import Response
from django.contrib.auth.models import User
</code></pre>
