Is there any API to know whether the current class is a "dynamic" one?

Sometimes I wanna dynamically check whether the current class is a dynamic one, so is there any way to figure out it?

Thanks!