docs: def is_opened(cls, dc_code, type_):
          """List opened datacenters for given type."""
          options = {'dc_code': dc_code, '%s_opened' % type_: True}
          datacenters = cls.safe_call('hosting.datacenter.list', options)
          if not datacenters:
              # try with ISO code
              options = {'iso': dc_code, '%s_opened' % type_: True}
              datacenters = cls.safe_call('hosting.datacenter.list', options)
              if not datacenters:
                  raise DatacenterClosed(r'/!\ Datacenter %s is closed, please '
                                         'choose another datacenter.' % dc_code)
  
          datacenter = datacenters[0]
          if datacenter.get('%s_closed_for' % type_) == 'NEW':
              dc_close_date = datacenter.get('deactivate_at', '')
              if dc_close_date:
                  dc_close_date = dc_close_date.strftime('%d/%m/%Y')
              raise DatacenterLimited(dc_close_date)