code: def get_choices(module_name):
      
      try:
          module = importlib.import_module(module_name)
          if hasattr(module, '__all__'):
              return module.__all__
          else:
              return [name for name, _ in inspect.getmembers(module, inspect.isclass)
                      if name != "device"]
      except ImportError:
          return []
docs: Retrieve members from ``module_name``'s ``__all__`` list.
  
      :rtype: list