@classmethod<EOL><INDENT>def construct_from_string(cls, string):<DEDENT>
if isinstance(string, str):<EOL><INDENT>msg = "<STR_LIT>"<EOL>try:<EOL><INDENT>match = cls._match.match(string)<EOL>if match:<EOL><INDENT>d = match.groupdict()<EOL>return cls(unit=d['<STR_LIT>'], tz=d['<STR_LIT>'])<EOL><DEDENT><DEDENT>except Exception:<EOL><INDENT>pass<EOL><DEDENT>raise TypeError(msg.format(string))<EOL><DEDENT>raise TypeError("<STR_LIT>")<EOL>
Construct a DatetimeTZDtype from a string.

Parameters
----------
string : str
    The string alias for this DatetimeTZDtype.
    Should be formatted like ``datetime64[ns, <tz>]``,
    where ``<tz>`` is the timezone name.

Examples
--------
>>> DatetimeTZDtype.construct_from_string('datetime64[ns, UTC]')
datetime64[ns, UTC]