def METHOD_NAME(name, id_field, vector_field, attr1_name, attr2_name):
    field1 = FieldSchema(name=id_field, dtype=DataType.VARCHAR, description="varchar", is_primary=True, max_length=10)
    field2 = FieldSchema(name=vector_field, dtype=DataType.FLOAT_VECTOR, description="float vector", dim=_DIM)
    field3 = FieldSchema(name=attr1_name, dtype=DataType.INT64, description="attr1")
    field4 = FieldSchema(name=attr2_name, dtype=DataType.DOUBLE, description="attr2")
    schema = CollectionSchema(fields=[field1, field2, field3, field4])
    collection = Collection(name=name, data=None, schema=schema)
    print("\ncollection created:", name)
    return collection