code: def episode_has_broken_api_turn(episode_idx, max_turns):
      """
      To generate predictably broken episodes (for calculating metrics)
      """
      return episode_idx % 2 == 1 and max_turns > 0
  
imports: import parlai.core.tod.tod_agents
  import parlai.core.tod.tod_core
  import os
label_desc: Use image node_id 1 for calling a global function with example usage: episode_has_broken_api_turn(episode_idx, max_turns) and returns: unknown