code: def _bytes_to_date(s):
      return date(*time.strptime(s, "%Y-%m-%d")[:3])
  
imports: import time
  from datetime import date
  import numpy
  from numpy.testing import assert_, assert_equal, assert_allclose, assert_raises
  from numpy.lib._iotools import LineSplitter, NameValidator, StringConverter, has_nested_fields, easy_dtype, flatten_dtype
label_desc: Use image node_id 1 for calling a global function with example usage: _bytes_to_date(s) and returns: date