code: def get_configuration(cls, resource):
          
          strategy = cls._get_strategy(resource.__class__)
          return strategy.get_configuration(resource)
docs: Return how much consumables are used by resource with current configuration.
  
              Output example:
              {
                  <ConsumableItem instance>: <usage>,
                  <ConsumableItem instance>: <usage>,
                  ...
              }