def METHOD_NAME(spec: dict) -> Tuple[str, bool]:
    # complex inner kind?
    if "allOf" in spec:
        inner = spec["allOf"][0]
        if inner.get("format") == "date-time":
            return "datetime", False
        else:
            self.create_inner_class(complex_kind, inner)
            return complex_kind, True
    else:
        return complex_kind, False