(schema: Schema, count: int)
A generator that yields arbitrary data that conforms to the schema. It will
    yield a number of data structures equal to what is given in the count

    Parameters
    ----------
    schema: dict, list, string
        Schema
    count: int
        Number of objects to generate


    Example::

        from fastavro import writer
        from fastavro.utils import generate_data

        schema = {
            'doc': 'A weather reading.',
            'name': 'Weather',
            'namespace': 'test',
            'type': 'record',
            'fields': [
                {'name': 'station', 'type': 'string'},
                {'name': 'time', 'type': 'long'},
                {'name': 'temp', 'type': 'int'},
            ],
        }

        with open('weather.avro', 'wb') as out:
            writer(out, schema, generate_data(schema, 5))
A generator that yields arbitrary data that conforms to the schema. It will
    yield a number of data structures equal to what is given in the count
A generator that yields arbitrary data that conforms to the schema . It will yield a number of data structures equal to what is given in the count
def generate_many(schema: Schema, count: int) -> Iterator[Any]:
    """
    A generator that yields arbitrary data that conforms to the schema. It will
    yield a number of data structures equal to what is given in the count

    Parameters
    ----------
    schema: dict, list, string
        Schema
    count: int
        Number of objects to generate


    Example::

        from fastavro import writer
        from fastavro.utils import generate_data

        schema = {
            'doc': 'A weather reading.',
            'name': 'Weather',
            'namespace': 'test',
            'type': 'record',
            'fields': [
                {'name': 'station', 'type': 'string'},
                {'name': 'time', 'type': 'long'},
                {'name': 'temp', 'type': 'int'},
            ],
        }

        with open('weather.avro', 'wb') as out:
            writer(out, schema, generate_data(schema, 5))
    """
    named_schemas: NamedSchemas = {}
    parsed_schema = parse_schema(schema, named_schemas)
    for index in range(count):
        yield gen_data(parsed_schema, named_schemas, index)
def generate_many ( schema : Schema , count : int ) -> Iterator [ Any ] : named_schemas : NamedSchemas = { } parsed_schema = parse_schema ( schema , named_schemas ) for index in range ( count ) : yield gen_data ( parsed_schema , named_schemas , index )