Let's use "entity_embed" instead of $entity_type. This will clearly show that this error happened here.