"ImportError: __import__ not found" in server script

client side code : ```frappe.web_form.after_save = async function() {
const form_data = frappe.web_form.get_values();
console.log(form_data);
if (form_data.resume_attachment) {
try {
const resume_text = await fetchResumeText(form_data.resume_attachment);
console.log(resume_text);
const ats_score = await calculate_ats_score(resume_text, “JavaScript Developer event handling jQuery CSS web applications responsive designs cross-browser compatibility DOM manipulation problem-solving communication skills”);
console.log(ats_score);
frappe.msgprint(('ATS score: ') + ats_score);
frappe.web_form.set_value(‘custom_ats_score’, ats_score);
await frappe.web_form.save();
} catch (error) {
frappe.msgprint(
('Error calculating ATS score: ') + error.message);
}
}
};

async function fetchResumeText(resume_url) {
try {
// Fetch the resume file
const response = await fetch(resume_url);
const blob = await response.blob();
const formData = new FormData();
formData.append(‘file’, blob, ‘resume.pdf’); // Assuming the resume is a PDF

    // Get CSRF token from Frappe
    const csrf_token = frappe.csrf_token;

    // Call the server-side method to extract text from PDF
    const extractResponse = await fetch('/api/method/extract_pdf_text', {
        method: 'POST',
        headers: {
            'X-Frappe-CSRF-Token': csrf_token
        },
        body: formData
    });

    const extractData = await extractResponse.json();
    if (extractData.error) {
        throw new Error(extractData.error);
    }

frappe.msgprint(__('resume data: ') + extractData.text);
return extractData.text;
} catch (error) {
throw new Error('Failed to fetch resume: ’ + error.message);
}
}

and server side code :```import frappe
from PyPDF2 import PdfReader
from frappe import Response

@frappe.whitelist(allow_guest=True)
def extract_pdf_text():
    if 'file' not in frappe.request.files:
        frappe.throw(_("No file found"))
    
    uploaded_file = frappe.request.files['file']
    print("uploaded_file",uploaded_file)
    try:
        pdf_reader = PdfReader(uploaded_file.stream)
        print("pdf_reader",pdf_reader)
        text_content = ""
        for page in pdf_reader.pages:
            text_content += page.extract_text() + "\n"
        print("text_content",text_content)
        return Response({
            "text": text_content
        }, status=200, mimetype='application/json')
    
    except Exception as e:
        frappe.log_error(frappe.get_traceback(), "extract_pdf_text")
        return Response({
            "error": str(e)
        }, status=500, mimetype='application/json')```
 but I got import error 
can You help me ?

If you are use the server script doctype then check the reference: