code: def extension_supported(extension_name, request):
      
      for ext in list_extensions(request):
          if ext.name == extension_name:
              return True
      return False
docs: Determine if nova supports a given extension name.
  
      Example values for the extension_name include AdminActions, ConsoleOutput,
      etc.