def METHOD_NAME(self, rules, evaluation: Evaluation):
    """SparseArray[rules_List]"""
    if not (rules.has_form("List", None) and len(rules.elements) > 0):
        if rules is Symbol("Automatic"):
            return
        print(rules.has_form("List", (1,)))
        evaluation.message("SparseArray", "list", rules)
        return
    if not isinstance(rules.elements[0], Atom) and rules.elements[
        0
    ].get_head_name() in (
        "System`Rule",
        "System`DelayedRule",
    ):
        dims = self.find_dimensions(rules.elements, evaluation)
        if dims is None:
            return
        return self.eval_with_rules_dims_and_default(
            rules, dims, Integer0, evaluation
        )
    return self.list_to_sparse(rules, evaluation)