import ast


def is_assign_to_name(statement):
    """Returns true if statement is of the form ``var = ...``"""
    return isinstance(statement, ast.Assign) and \
           len(statement.targets) == 1 and \
           isinstance(statement.targets[0], ast.Name)