code: def select_location_from_rough_string_match(
      location1, location2, chat
  ):
      loc1_score = 0.0
      loc2_score = 0.0
      loc1_lower = location1.lower()
      loc2_lower = location2.lower()
      for turn in chat:
          for word in turn.lower().split(" "):
              if len(word) < 5:
                  continue
              if word in loc1_lower:
                  loc1_score += 1
              if word in loc2_lower:
                  loc2_score += 1
      loc1_score /= len(loc1_lower.split(" "))
      loc2_score /= len(loc2_lower.split(" "))
      if loc1_score > loc2_score:
          return location1
      else:
          return location2
  
imports: import random
  import io
  import os
  import json
  from parlai.utils.misc import msg_to_str
label_desc: Use image node_id 11 for calling a global function with example usage: select_location_from_rough_string_match(location1, location2, chat) and returns: location1, location2