def METHOD_NAME(self, statement: int, block_idx: int) -> None:
    main_resource = self.local_graph.vertices[block_idx]
    for i in range(statement):
        self._create_new_resource(main_resource, i, resource_idx=block_idx, foreach_idx=i)