code: def date_to_span_number(year: int, month: int, day: int) -> int:
      """Calculated span from date as number of days since unix epoch."""
      return (
          datetime.datetime(year, month, day) - UNIX_EPOCH_DATE
      ).days
  
imports: import datetime
  import os
  import re
  from typing import Any, Dict, Iterable, List, Optional, Tuple, Union
  from absl import logging
  import numpy
  from tfx.dsl.io import fileio
  from tfx.proto import example_gen_pb2
  from tfx.proto import range_config_pb2
  from tfx.utils import io_utils
  from google.protobuf import json_format
  from tensorflow.core.example import example_pb2
  from tensorflow.core.example import feature_pb2
label_desc: Use image node_id 7 for calling a global function with example usage: date_to_span_number(year, month, day) and returns: unknown