Is there a way to check if a HF model belongs to AutoModelForCausalLM family?

is there a way to check programmatically if a given HF model class belongs to AutoModelForCausalLM family?