code: def __init__(self, **kwargs):
      super().__init__()
      instruments = {}
      for symbol, group in self.df.groupby(by="symbol"):
          start = group["datetime"].iloc[0]
          end = group["datetime"].iloc[-1]
          instruments[symbol] = [(start, end)]
      self._data = instruments
  
imports: from typing import Union, List, Dict, Tuple
  import unittest
  import pandas
  import numpy
  import io
  from .data import GetData
  from ..None import init
  from ..constant import REG_CN, REG_TW
  from qlib.data.filter import NameDFilter
  from qlib.data import D
  from qlib.data.data import Cal, DatasetD
  from qlib.data.storage import CalendarStorage, InstrumentStorage, FeatureStorage, CalVT, InstKT, InstVT
label_desc: Use image node_id 1 to create a new MockInstrumentStorage object from inherited base classes: MockStorageBase, InstrumentStorage with example: obj = MockInstrumentStorage()