code: def test_cast_format(self):
      date_type = Date(date_format="%m-%d-%Y")
  
      values = ("03-01-1994", "02-17-2011", None, "01-05-1984", "n/a")
      casted = tuple(date_type.cast(v) for v in values)
      self.assertSequenceEqual(
          casted,
          (
              datetime.date(1994, 3, 1),
              datetime.date(2011, 2, 17),
              None,
              datetime.date(1984, 1, 5),
              None,
          ),
      )
  
imports: import datetime
  import pickle
  import unittest
  from decimal import Decimal
  import parsedatetime
  from agate.data_types import Boolean, Date, DateTime, Number, Text, TimeDelta
  from agate.exceptions import CastError
label_desc: Use image node_id 6 for calling the TestDate obj's underlying member method code with example usage: obj.test_cast_format() without return types