class_docstr: Test data request different implementations
docstr: Check that the data and meta data object are dictionaries
  
  Keyword arguments
  func -- the function to assert its format
  output_format -- the format of the call
  **args -- The parameters for the call
docstr_tok: ["Check","that","the","data","and","meta","data","object","are","dictionaries","Keyword","arguments","func","--","the","function","to","assert","its","format","output_format","--","the","format","of","the","call","*","*","args","--","The","parameters","for","the","call"]
code: def _assert_result_is_format(
      self, func, output_format="json", **args
  ):
      """Check that the data and meta data object are dictionaries
  
      Keyword arguments
      func -- the function to assert its format
      output_format -- the format of the call
      **args -- The parameters for the call
      """
      stime = timeit.default_timer()
      data, meta_data = func(**args)
      elapsed = timeit.default_timer() - stime
      print(
          "Function: {} - Format: {} - Took: {}".format(
              func.__name__, output_format, elapsed
          )
      )
      if output_format == "json":
          self.assertIsInstance(
              data, dict, "Result Data must be a dictionary"
          )
          if meta_data is not None:
              self.assertIsInstance(
                  meta_data,
                  dict,
                  "Result Meta Data must be a \
                  dictionary",
              )
      elif output_format == "pandas":
          self.assertIsInstance(
              data, df, "Result Data must be a pandas data frame"
          )
          if meta_data is not None:
              self.assertIsInstance(
                  meta_data,
                  dict,
                  "Result Meta 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.cryptocurrencies import CryptoCurrencies
  from ..alpha_vantage.foreignexchange import ForeignExchange
  from pandas import DataFrame
  import os
  import unittest
  import timeit
  import time
label_desc: Use image node_id 2 for calling the TestAlphaVantage obj's underlying member method code with example usage: obj._assert_result_is_format(func, output_format) without return types