code: def resolve_entities(entities):
      # assign morphological level targets to entities
      resolved_targets = {
          entity_id: resolve_entity(entity, entities)
          for entity_id, entity in entities.items()
      }
      for entity_id in entities:
          entities[entity_id]["targets"] = resolved_targets[entity_id]
  
imports: import argparse
  import json
  import os
  import random
  import tarfile
  import tempfile
  from tqdm import tqdm
label_desc: Use image node_id 7 for calling a global function with example usage: resolve_entities(entities) without return types