in usort/translate.py [0:0]
def name_to_node(name: str) -> Union[cst.Name, cst.Attribute]:
if "." not in name:
return cst.Name(name)
base, name = name.rsplit(".", 1)
return cst.Attribute(value=name_to_node(base), attr=cst.Name(name))