def _GetDataTypeItems(self, data_type_key):
    """Returns the "_items" array inside a given data type dictionary.

    Args:
      data_type_key: str, key of self.DATA_TYPE containing the desired _items.
    Returns:
      list of items in the array, or an empty list if the data type is unknown
      or not found.
    """
    data_type = self.DATA_TYPES.get(data_type_key)
    for d in self._system_profile:
      if data_type and d.get('_dataType') == data_type and '_items' in d:
        return d['_items']
    return []
dataset/ETHPy150Open google/simian/src/simian/mac/common/hw.py/SystemProfile._GetDataTypeItems/original