def _check_node_import(self, node: Union[(ast.Import, ast.ImportFrom)], filename: str) -> None:
    '.'
    if isinstance(node, ast.Import):
        for n in node.names:
            m = n.name.split('.')[0]
            if (not self.check_import_stdlib(m)):
                m_status = self.check_imported(m)
                if (not m_status):
                    self.validation_data['errors'].append(f'Module validation failed for {filename} module "{m}" could not be imported).')
                self.validation_data['moduleImports'].append({'filename': filename, 'module': m, 'status': m_status})
    elif isinstance(node, ast.ImportFrom):
        m = node.module.split('.')[0]
        if (not self.check_import_stdlib(m)):
            m_status = self.check_imported(m)
            if (not m_status):
                self.validation_data['errors'].append(f'Module validation failed for {filename} module "{m}" could not be imported).')
            self.validation_data['moduleImports'].append({'filename': filename, 'module': m, 'status': m_status})
.
def _check_node_import(self, node: Union[(astImport, astImportFrom)], filename: str) -> None:
    
    if isinstance(node, astImport):
        for n in nodenames:
            m = nnamesplit()[0]
            if (not selfcheck_import_stdlib(m)):
                m_status = selfcheck_imported(m)
                if (not m_status):
                    selfvalidation_data['errors']append(f'Module validation failed for {filename} module "{m}" could not be imported)')
                selfvalidation_data['moduleImports']append({'filename': filename, 'module': m, 'status': m_status})
    elif isinstance(node, astImportFrom):
        m = nodemodulesplit()[0]
        if (not selfcheck_import_stdlib(m)):
            m_status = selfcheck_imported(m)
            if (not m_status):
                selfvalidation_data['errors']append(f'Module validation failed for {filename} module "{m}" could not be imported)')
            selfvalidation_data['moduleImports']append({'filename': filename, 'module': m, 'status': m_status})