def allowed_file(filename):
   return '.' in filename and \
      filename.rsplit('.', 1)[1] in allowed_ext
Return the name of the given device or None if we don't know.
dataset/ETHPy150Open FINRAOS/yum-nginx-api/yumapi/__init__.py/allowed_file--crossover with--dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/device_tracker/snmp.py/SnmpScanner.get_device_name