def __init__(self, name, constants=None):
if not constants:<EOL><INDENT>constants = ParsedName.constants<EOL><DEDENT>if isinstance(name, HumanName):<EOL><INDENT>self._parsed_name = name<EOL><DEDENT>else:<EOL><INDENT>self._parsed_name = HumanName(name, constants=constants)<EOL>self._parsed_name.capitalize()<EOL><DEDENT>
Create a ParsedName instance.

        Args:
            name (Union[str, HumanName]): The name to be parsed (must be non empty nor None).
            constants (:class:`nameparser.config.Constants`): Configuration for `HumanName` instantiation.
                (Can be None, if provided it overwrites the default one generated in
                :method:`prepare_nameparser_constants`.)