usort/util.py
def parse_import(code: str) -> cst.SimpleStatementLine:
    """
    Parse a single import statement. For testing and debugging purposes only.
    """
    node = cst.parse_statement(code)
    if not isinstance(node, cst.SimpleStatementLine):
        raise ValueError("not a statement")
    if not isinstance(node.body[0], (cst.Import, cst.ImportFrom)):
        raise ValueError("not an import statement")
    return node

    Parse a single import statement. For testing and debugging purposes only.
    
Parse a single import statement. For testing and debugging purposes only.
Parse a single import statement . For testing and debugging purposes only .
def parse_import(code: str) -> cst.SimpleStatementLine:
    node = cst.parse_statement(code)
    if not isinstance(node, cst.SimpleStatementLine):
        raise ValueError("not a statement")
    if not isinstance(node.body[0], (cst.Import, cst.ImportFrom)):
        raise ValueError("not an import statement")
    return node
def parse_import ( code : str ) -> cst . SimpleStatementLine : node = cst . parse_statement ( code ) if not isinstance ( node , cst . SimpleStatementLine ) : raise ValueError ( "not a statement" ) if not isinstance ( node . body [ 0 ] , ( cst . Import , cst . ImportFrom ) ) : raise ValueError ( "not an import statement" ) return node
Parse a single import statement.
Parse a single import statement .
"""
    Parse a single import statement. For testing and debugging purposes only.
    """
code
str