code: def send_do_generate():
      choice = torch.cuda.LongTensor([GENERATE_NUM])
      torch.distributed.broadcast(choice, 0)
  
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 2 for calling the MegatronGenerate obj's underlying member method code with example usage: obj.send_do_generate() without return types