Errors to utils file are imported from pyspark.errors import ... https://github.com/apache/spark/blob/master/python/pyspark/sql/utils.py#L36
from pyspark.errors import ...