code: def coerce_to_dtype(dtype, value):
      """
      Make a value with the specified numpy dtype.
  
      Only datetime64[ns] and datetime64[D] are supported for datetime dtypes.
      """
      name = dtype.name
      if name.startswith("datetime64"):
          if name == "datetime64[D]":
              return make_datetime64D(value)
          elif name == "datetime64[ns]":
              return make_datetime64ns(value)
          else:
              raise TypeError(
                  "Don't know how to coerce values of dtype %s" % dtype
              )
      return dtype.type(value)
  
imports: from collections import OrderedDict
  from datetime import datetime
  from distutils.version import StrictVersion
  from warnings import catch_warnings, filterwarnings
  import six
  import numpy
  from numpy import array_equal, broadcast, busday_count, datetime64, diff, dtype, empty, flatnonzero, hstack, isnan, nan, vectorize, where
  from numpy.lib.stride_tricks import as_strided
  from toolz import flip
label_desc: Use image node_id 5 for calling a global function with example usage: coerce_to_dtype(dtype, value) and returns: dtype, make_datetime64D, make_datetime64ns