original_docstring: 
      Creates a proper metrics store based on the current configuration.
  
      :param cfg: Config object.
      :param read_only: Whether to open the metrics store only for reading (Default: True).
      :return: A metrics store implementation.
      
docstring: Creates a proper metrics store based on the current configuration.
docstring_tokens: Creates a proper metrics store based on the current configuration .
code: def metrics_store(cfg, read_only=True, workload=None, test_procedure=None, provision_config_instance=None, meta_info=None):
      """
      Creates a proper metrics store based on the current configuration.
  
      :param cfg: Config object.
      :param read_only: Whether to open the metrics store only for reading (Default: True).
      :return: A metrics store implementation.
      """
      cls = metrics_store_class(cfg)
      store = cls(cfg=cfg, meta_info=meta_info)
      logging.getLogger(__name__).info("Creating %s", str(store))
  
      test_execution_id = cfg.opts("system", "test_execution.id")
      test_execution_timestamp = cfg.opts("system", "time.start")
      selected_provision_config_instance = cfg.opts("builder", "provision_config_instance.names") \
          if provision_config_instance is None else provision_config_instance
  
      store.open(
          test_execution_id, test_execution_timestamp,
          workload, test_procedure, selected_provision_config_instance,
          create=not read_only)
      return store
code_tokens: def metrics_store ( cfg , read_only = True , workload = None , test_procedure = None , provision_config_instance = None , meta_info = None ) : cls = metrics_store_class ( cfg ) store = cls ( cfg = cfg , meta_info = meta_info ) logging . getLogger ( __name__ ) . info ( "Creating %s" , str ( store ) ) test_execution_id = cfg . opts ( "system" , "test_execution.id" ) test_execution_timestamp = cfg . opts ( "system" , "time.start" ) selected_provision_config_instance = cfg . opts ( "builder" , "provision_config_instance.names" ) if provision_config_instance is None else provision_config_instance store . open ( test_execution_id , test_execution_timestamp , workload , test_procedure , selected_provision_config_instance , create = not read_only ) return store
short_docstring: Creates a proper metrics store based on the current configuration.
short_docstring_tokens: Creates a proper metrics store based on the current configuration .
comment: """
      Creates a proper metrics store based on the current configuration.
  
      :param cfg: Config object.
      :param read_only: Whether to open the metrics store only for reading (Default: True).
      :return: A metrics store implementation.
      """