code: def test_cast_format(self):
      datetime_type = DateTime(datetime_format="%m-%d-%Y %I:%M %p")
  
      values = (
          "03-01-1994 12:30 PM",
          "02-17-2011 06:30 AM",
          None,
          "01-05-1984 06:30 PM",
          "n/a",
      )
      casted = tuple(datetime_type.cast(v) for v in values)
      self.assertSequenceEqual(
          casted,
          (
              datetime.datetime(1994, 3, 1, 12, 30, 0),
              datetime.datetime(2011, 2, 17, 6, 30, 0),
              None,
              datetime.datetime(1984, 1, 5, 18, 30, 0),
              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 7 for calling the TestDateTime obj's underlying member method code with example usage: obj.test_cast_format() without return types