docstr: Test that api call returns a pandas data frame with a date as index
          
docstr_tok: ["Test","that","api","call","returns","a","pandas","data","frame","with","a","date","as","index"]
code: def test_time_series_intraday_date_indexing(self, mock_request):
      """Test that api call returns a pandas data frame with a date as index"""
      ts = TimeSeries(
          key=TestAlphaVantage._API_KEY_TEST,
          output_format="pandas",
          indexing_type="date",
      )
      url = "https://www.alphavantage.co/query?function=TIME_SERIES_INTRADAY&symbol=MSFT&interval=1min&outputsize=full&apikey=test&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"
          )
          if ts.indexing_type == "date":
              assert isinstance(data.index[0], Timestamp)
          else:
              if sys.version_info[0] == 3:
                  assert isinstance(data.index[0], str)
              else:
                  assert isinstance(data.index[0], basestring)
  
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 7 for calling the TestAlphaVantage obj's underlying member method code with example usage: obj.test_time_series_intraday_date_indexing(mock_request) without return types