def METHOD_NAME(self, args):
    # You must parse model_config. JSON string is not parsed here
    self.model_config = model_config = json.loads(args["model_config"])
    using_decoupled = pb_utils.using_decoupled_model_transaction_policy(
        model_config
    )
    if not using_decoupled:
        raise pb_utils.TritonModelException(
            """the model `{}` can generate any number of responses per request,
            enable decoupled transaction policy in model configuration to
            serve this model""".format(
                args["model_name"]
            )
        )
    self.inflight_thread_count = 0
    self.inflight_thread_count_lck = threading.Lock()