parameters: (dtype)
docstring: Check whether the dtype is a date-like dtype. Raises an error if invalid.
  
      Parameters
      ----------
      dtype : dtype, type
          The dtype to check.
  
      Raises
      ------
      TypeError : The dtype could not be casted to a date-like dtype.
      ValueError : The dtype is an illegal date-like dtype (e.g. the
                   the frequency provided is too specific)
docstring_summary: Check whether the dtype is a date-like dtype. Raises an error if invalid.
docstring_tokens: Check whether the dtype is a date - like dtype . Raises an error if invalid .
function: def _validate_date_like_dtype(dtype) -> None:
      """
      Check whether the dtype is a date-like dtype. Raises an error if invalid.
  
      Parameters
      ----------
      dtype : dtype, type
          The dtype to check.
  
      Raises
      ------
      TypeError : The dtype could not be casted to a date-like dtype.
      ValueError : The dtype is an illegal date-like dtype (e.g. the
                   the frequency provided is too specific)
      """
  
      try:
          typ = np.datetime_data(dtype)[0]
      except ValueError as e:
          raise TypeError(e)
      if typ != "generic" and typ != "ns":
          raise ValueError(
              f"{repr(dtype.name)} is too specific of a frequency, "
              f"try passing {repr(dtype.type.__name__)}"
          )
function_tokens: def _validate_date_like_dtype ( dtype ) -> None : try : typ = np . datetime_data ( dtype ) [ 0 ] except ValueError as e : raise TypeError ( e ) if typ != "generic" and typ != "ns" : raise ValueError ( f"{repr(dtype.name)} is too specific of a frequency, " f"try passing {repr(dtype.type.__name__)}" )