code: def str2multitask_weights(s):
      if s == "stochastic":
          return s
      else:
          return str2floats(s)
  
imports: import argparse
  import importlib
  import os
  import sys
  import datetime
  import parlai
  import parlai.utils.logging
  from parlai.core.build_data import modelzoo_path
  from parlai.core.loader import load_teacher_module, load_agent_module, load_world_module
  from parlai.tasks.tasks import ids_to_tasks
  from parlai.core.opt import Opt
  from parlai.utils.io import PathManager
  from typing import List, Optional
label_desc: Use image node_id 7 for calling a global function with example usage: str2multitask_weights(s) and returns: s, str2floats