code: def __init__(self, model, inference_strategy=None):
      self.model = model
      self.inference_strategy = inference_strategy
  
file_path: NeMo/nemo/collections/nlp/modules/common/text_generation_server.py
imports: import json
  import threading
  import torch
  from flask import Flask, jsonify, request
  from flask_restful import Api, Resource
  from nemo.collections.nlp.modules.common.retro_inference_strategies import RetroModelTextGenerationStrategy, RetroQAModelTextGenerationStrategy
  from nemo.collections.nlp.modules.common.text_generation_utils import generate
  from nemo.utils import logging
label_desc: Use image node_id 1 to create a new MegatronGenerate object from inherited base classes: Resource with example: obj = MegatronGenerate(model, inference_strategy)