code: def test_extract_duplicates():
      list_one = [
          "greet",
          {"inform": {"use_entities": []}},
          "start_form",
          "goodbye",
      ]
      list_two = [
          "goodbye",
          {"inform": {"use_entities": ["destination"]}},
      ]
  
      expected = ["goodbye", "inform"]
      result = rasa.shared.utils.common.extract_duplicates(
          list_one, list_two
      )
  
      assert result == expected
  
file_path: rasa/tests/shared/utils/test_common.py
imports: import asyncio
  from typing import Collection, List, Optional, Text
  from unittest.mock import Mock
  import pytest
  import rasa.shared.core.domain
  import rasa.shared.utils.common
  from rasa.shared.exceptions import RasaException
label_desc: Use image node_id 8 for calling a global function with example usage: test_extract_duplicates() without return types