def METHOD_NAME(
    node: nodes.Expr,
    iter_obj: nodes.Name | nodes.Attribute,
    infer_val: nodes.List | nodes.Set,
) -> bool:
    iter_obj_name = (
        iter_obj.attrname
        if isinstance(iter_obj, nodes.Attribute)
        else iter_obj.name
    )
    return (infer_val == utils.safe_infer(iter_obj)) and (  # type: ignore[no-any-return]
        node.value.func.expr.name == iter_obj_name
    )