code: def _read_data(name: str) -> StockData:
      """ """
      filename = external_path(name + ".csv")
      data = StockData(
          date=[],
          open=[],
          high=[],
          low=[],
          close=[],
          volume=[],
          adj_close=[],
      )
      with open_csv(filename) as f:
          next(f)
          reader = csv.reader(f, delimiter=",")
          for row in reader:
              (
                  date,
                  open_price,
                  high,
                  low,
                  close,
                  volume,
                  adj_close,
              ) = row
              data["date"].append(date)
              data["open"].append(float(open_price))
              data["high"].append(float(high))
              data["low"].append(float(low))
              data["close"].append(float(close))
              data["volume"].append(int(volume))
              data["adj_close"].append(float(adj_close))
      return data
  
file_path: bokeh/src/bokeh/sampledata/stocks.py
imports: from __future__ import annotations
  import logging
  import csv
  from typing import TypedDict
  from ..util.sampledata import external_path, open_csv
label_desc: Use image node_id 1 for calling a global function with example usage: _read_data(name) and returns: data