How to create TileSet in GDScript

Godot Version 4.3 Beta 1

Question

I tried to create a TileSet using GDScript:

static func generate_tile_set() -> TileSet:
	var tile_set: TileSet = TileSet()

But it doesn’t work, help me, how to create a tileset?

TileSet.new()

thanks, I forgot)