docstr: Return the resource calculator
docstr_tok: ["Return","the","resource","calculator"]
code: def get_resource_calculator(
      calculator_type: str,
  ) -> ResourceCalculator:
      """Return the resource calculator"""
      assert (
          calculator_type
          in ResourceCalculatorFactory.__type_to_calculator
      ), f"{calculator_type} not supported"
      return ResourceCalculatorFactory.__type_to_calculator[
          calculator_type
      ]()
  
imports: import logging
  import math
  from abc import ABC, abstractmethod
  from autogluon.common.utils.resource_utils import ResourceManager
label_desc: Use image node_id 1 for calling the ResourceCalculatorFactory obj's underlying member method code with example usage: obj.get_resource_calculator(calculator_type) and returns: ResourceCalculatorFactory