This website is for version 5. You can find the documentation for version 4 here.

altair.check_fields_and_encodings#

altair.check_fields_and_encodings(parameter, field_name)#