code: def get_day_offset(date_vector):
      r"""Compute the day offsets between games.
  
      Parameters
      ----------
      date_vector : pandas.Series
          The date column.
  
      Returns
      -------
      day_offset : pandas.Series
          A vector of day offsets between adjacent dates.
  
      """
      dv = pd.to_datetime(date_vector)
      offsets = pd.to_datetime(dv) - pd.to_datetime(dv[0])
      day_offset = offsets.astype("timedelta64[D]").astype(int)
      return day_offset
  
imports: import warnings
  from alphapy.__main__ import main_pipeline
  from alphapy.frame import read_frame
  from alphapy.frame import write_frame
  from alphapy.globals import ModelType
  from alphapy.globals import Partition, datasets
  from alphapy.globals import PSEP, SSEP, USEP
  from alphapy.globals import WILDCARD
  from alphapy.model import get_model_config
  from alphapy.model import Model
  from alphapy.space import Space
  from alphapy.utilities import valid_date
  import argparse
  import datetime
  from itertools import groupby
  import logging
  import math
  import numpy
  import os
  import pandas
  import sys
  import yaml
label_desc: Use image node_id 6 for calling a global function with example usage: get_day_offset(date_vector) and returns: day_offset