class_docstr: Identify a generator method as a property. This will allow instances to iterate
  over the property multiple times, and not consume the generator. It accomplishes
  this by wrapping the generator and creating multiple generator instances if
  iterated over multiple times.
class_docstr_tok: ["Identify","a","generator","method","as","a","property",".","This","will","allow","instances","to","iterate","over","the","property","multiple","times",",","and","not","consume","the","generator",".","It","accomplishes","this","by","wrapping","the","generator","and","creating","multiple","generator","instances","if","iterated","over","multiple","times","."]
code: def __get__(self, obj, objtype=None):
      return GeneratorIterator(self.generator, obj)
  
imports: import json
  import logging
  import re
  from typing import Any, Dict, List, Type, TypeVar
  from pytext.config.component import Component, ComponentType
  from pytext.data.utils import shard
  from pytext.utils.data import parse_slot_string, Slot
  from pytext.utils.file_io import PathManager
label_desc: Use image node_id 2 for calling the GeneratorMethodProperty obj's underlying member method code with example usage: obj.__get__(obj, objtype) and returns: GeneratorIterator