Check if two objects are ignoring collision with each other

After using Physics2D.IgnoreCollision(collider1, collider2), is there a way to check whether those same two objects are ignoring collision with one another?

You may use Physics2D.GetIgnoreCollision.