def _validate_node_name(self, var_value):
<EOL>var_values = var_value if isinstance(var_value, list) else [var_value]<EOL>for item in var_values:<EOL><INDENT>if (not isinstance(item, str)) or (<EOL>isinstance(item, str)<EOL>and (<EOL>("<STR_LIT:U+0020>" in item)<EOL>or any(<EOL>[<EOL>element.strip() == "<STR_LIT>"<EOL>for element in item.strip().split(self._node_separator)<EOL>]<EOL>)<EOL>)<EOL>):<EOL><INDENT>return True<EOL><DEDENT><DEDENT>return False<EOL>
Validate NodeName pseudo-type.