class_docstr: Blueprint for model chat without images.
  
  This blueprint subclasses BaseModelChatBlueprint to provide logic for keeping track
  of how many more conversations are needed per model; this logic is not shared with
  other model-chat blueprints.
class_docstr_tok: ["Blueprint","for","model","chat","without","images",".","This","blueprint","subclasses","BaseModelChatBlueprint","to","provide","logic","for","keeping","track","of","how","many","more","conversations","are","needed","per","model",";","this","logic","is","not","shared","with","other","model-chat","blueprints","."]
code: def _get_shared_models(self, args: "DictConfig") -> Dict[str, dict]:
      with open(args.blueprint.model_opt_path) as f:
          all_model_opts = yaml.safe_load(f.read())
      active_model_opts = {
          model: opt
          for model, opt in all_model_opts.items()
          if self.conversations_needed.get(model, 0) > 0
      }
      return TurkLikeAgent.get_bot_agents(
          args=args, model_opts=active_model_opts
      )
  
imports: import json
  import os
  import pickle
  import random
  from abc import ABC, abstractmethod
  from dataclasses import dataclass, field
  from threading import Semaphore, Condition
  from typing import Any, Dict, List, Optional, TYPE_CHECKING
  import numpy
  import torch
  import yaml
  from mephisto.operations.registry import register_mephisto_abstraction
  from mephisto.abstractions.blueprint import SharedTaskState
  from mephisto.abstractions.blueprints.parlai_chat.parlai_chat_blueprint import ParlAIChatBlueprint, SharedParlAITaskState, ParlAIChatBlueprintArgs
  from omegaconf import DictConfig, MISSING
  from parlai.crowdsourcing.tasks.model_chat.bot_agent import TurkLikeAgent
  from parlai.crowdsourcing.tasks.model_chat.utils import ImageStack, get_context_generator
  from parlai.tasks.blended_skill_talk.agents import ContextGenerator
label_desc: Use image node_id 4 for calling the ModelChatBlueprint obj's underlying member method code with example usage: obj._get_shared_models(args) and returns: TurkLikeAgent