def _check_name(self, name: str):
    if name.startswith('edge_'):
        raise ValueError(f"Cannot set attribute with name '{name}' in this way, consider adding edge attributes as {self.name}.{name} = value.")
    invalid_names = set(dir(self)).union(self.keys)
    if (name in invalid_names):
        raise ValueError(f"Cannot set attribute with name '{name}', there is already an attribute named '{name}' in the dataset.")
def _check_name(self, name: str):
    if name.startswith('edge_'):
        raise ValueError(f"Cannot set attribute with name '{name}' in this way, consider adding edge attributes as {self.name}.{name} = value.")
    invalid_names = set(dir(self)).union(self.keys)
    if (name in invalid_names):
        raise ValueError(f"Cannot set attribute with name '{name}', there is already an attribute named '{name}' in the dataset.")