Data driven approaches in nanophotonics: A review of AI-enabled metadevices