docstr: Test that the rapidAPI key calls the rapidAPI endpoint
          
docstr_tok: ["Test","that","the","rapidAPI","key","calls","the","rapidAPI","endpoint"]
code: def test_rapidapi_key(self, mock_request):
      """Test that the rapidAPI key calls the rapidAPI endpoint"""
      ts = TimeSeries(key=TestAlphaVantage._API_KEY_TEST, rapidapi=True)
      url = "https://alpha-vantage.p.rapidapi.com/query?function=TIME_SERIES_INTRADAY&symbol=MSFT&interval=1min&outputsize=full&datatype=json"
      path_file = self.get_file_from_url("mock_time_series")
      with open(path_file) as f:
          mock_request.get(url, text=f.read())
          data, _ = ts.get_intraday(
              "MSFT", interval="1min", outputsize="full"
          )
          self.assertIsInstance(
              data, dict, "Result Data must be a dictionary"
          )
  
imports: from ..alpha_vantage.alphavantage import AlphaVantage
  from ..alpha_vantage.timeseries import TimeSeries
  from ..alpha_vantage.techindicators import TechIndicators
  from ..alpha_vantage.sectorperformance import SectorPerformances
  from ..alpha_vantage.foreignexchange import ForeignExchange
  from ..alpha_vantage.fundamentaldata import FundamentalData
  from pandas import DataFrame, Timestamp
  import unittest
  import sys
  import collections
  from os import path
  import requests_mock
label_desc: Use image node_id 4 for calling the TestAlphaVantage obj's underlying member method code with example usage: obj.test_rapidapi_key(mock_request) without return types