code: def get_agents_with_name(name, stmts):
      
      return [ag for stmt in stmts for ag in stmt.agent_list()
              if ag is not None and ag.name == name]
docs: Return all agents within a list of statements with a particular name.