Irans relationship with the IAEA to a large degree is based on Irans cooperation with the agency. After the US unilaterally pulled out of the deal, Iran has gone beyond its obligations in the safeguards agreement to accommodate the agency in areas where it did not even have to, like cameras.
Yet the agency, by passing the Israeli-backed resolution against Iran showed that it has once again gone beyond its technical duties and has become politicized by the West.