code: def test_get_network_traffic(self):
      name = "network_traffic"
      path = "~/.chronos/dataset"
      if os.environ.get("FTP_URI", None):
          file_url = f"{os.getenv('FTP_URI')}/analytics-zoo-data/network-traffic/data/data.csv"
  
          public_data = PublicDataset(
              name, path, redownload=False, with_split=False
          )
          public_data.df = pd.read_csv(file_url)
          public_data.df.StartTime = pd.to_datetime(
              public_data.df.StartTime
          )
          public_data.df.AvgRate = public_data.df.AvgRate.apply(
              lambda x: float(x[:-4])
              if x.endswith("Mbps")
              else float(x[:-4]) * 1000
          )
  
          tsdata = public_data.get_tsdata(
              target_col=["AvgRate", "total"],
              dt_col="StartTime",
              repair=False,
          )
          assert tsdata.df.shape == (8760, 5)
          assert set(tsdata.df.columns) == {
              "StartTime",
              "EndTime",
              "AvgRate",
              "total",
              "id",
          }
          tsdata._check_basic_invariants()
  
file_path: BigDL/python/chronos/test/bigdl/chronos/data/utils/test_public_dataset.py
imports: import os
  import pandas
  import pytest
  from unittest import TestCase
  from bigdl.chronos.data.utils.public_dataset import PublicDataset
  from ...None import op_torch, op_tf2
label_desc: Use image node_id 5 for calling the TestPublicDataset obj's underlying member method code with example usage: obj.test_get_network_traffic() without return types