code: def datetime64_dtypes(
      max_period="Y", min_period="ns", endianness="?"
  ):
      # type: (str, str, str) -> st.SearchStrategy[np.dtype]
      """Return a strategy for datetime64 dtypes, with various precisions from
      year to attosecond."""
      return dtype_factory(
          "datetime64[{}]",
          validate_time_slice(max_period, min_period),
          TIME_RESOLUTIONS,
          endianness,
      )
  
imports: from __future__ import absolute_import, division, print_function
  import math
  import re
  from collections import namedtuple
  import numpy
  import hypothesis.internal.conjecture.utils
  import hypothesis.strategies._internal.core
  from hypothesis import Verbosity, assume
  from hypothesis._settings import note_deprecation
  from hypothesis.errors import InvalidArgument
  from hypothesis.internal.compat import PY2, hrange, integer_types, quiet_raise, string_types
  from hypothesis.internal.coverage import check_function
  from hypothesis.internal.reflection import proxies, reserved_means_kwonly_star
  from hypothesis.internal.validation import check_type, check_valid_interval
  from hypothesis.reporting import current_verbosity
  from hypothesis.strategies._internal import SearchStrategy
  from hypothesis.utils.conventions import UniqueIdentifier, not_set
label_desc: Use image node_id 16 for calling a global function with example usage: datetime64_dtypes(max_period, min_period, endianness) and returns: dtype_factory