code: def GetMethodConfig(self, method):
          
          method_config = self._method_configs.get(method)
          if method_config:
              return method_config
          func = getattr(self, method, None)
          if func is None:
              raise KeyError(method)
          method_config = getattr(func, 'method_config', None)
          if method_config is None:
              raise KeyError(method)
          self._method_configs[method] = config = method_config()
          return config
docs: Returns service cached method config for given method.