I don’t know which era you are talking about. I was talking about the decade after 1989, about when the Soviets were collapsing, before the recent economic downturn. They were not importing food, nor were there oil available to run trucks, tractors or make fertilizer - https://www.architectural-review.com/essays/cubas-urban-farm...
Cubans were literally starving and caloric intake is estimate to have been reduced by 38% in the period you are talking about before food imports resurged. [0]
Another great example case, thank you for pointing that out.