code: def test_warning_for_base_paths_with_trailing_slash(caplog):
      test_path = "base/"
  
      with caplog.at_level(
          logging.DEBUG, logger="rasa.utils.endpoints"
      ):
          assert endpoint_utils.concat_url(test_path, None) == test_path
  
      assert len(caplog.records) == 1
  
file_path: rasa/tests/utils/test_endpoints.py
imports: import logging
  from pathlib import Path
  from typing import Text, Optional, Union
  from unittest.mock import Mock
  import pytest
  from aioresponses import aioresponses
  from rasa.shared.exceptions import FileNotFoundException
  from tests.utilities import latest_request, json_of_latest_request
  import rasa.utils.endpoints
label_desc: Use image node_id 2 for calling a global function with example usage: test_warning_for_base_paths_with_trailing_slash(caplog) without return types