code: def generate_spec(
      scenario,
      model,
      tokenizer,
      num_prompt_tokens,
      num_output_tokens,
      random,
  ):
      random_str: str = ""
      if random is not None:
          random_str = f",random={random}"
      return (
          f'"{scenario}:model={model},tokenizer={tokenizer},'
          f"num_prompt_tokens={num_prompt_tokens},"
          f"num_output_tokens={num_output_tokens}"
          f'{random_str}": '
          "{priority: 1}"
      )
  
imports: import argparse
  from datetime import datetime
label_desc: Use image node_id 1 for calling a global function with example usage: generate_spec(scenario, model, tokenizer, num_prompt_tokens, num_output_tokens, random) and returns: str, scenario, str, model, str, tokenizer, str, num_prompt_tokens, str, num_output_tokens, random_str, str