Openai python api equivalent for CLI commands

I would like to know where the openai python API has methods to use the finetunes.prepare_data and finetunes.create commands from the cli. I searched through the documentation but was unable to find a clear answer. Looking at the source, there does seem to be a create command, but I can’t tell what arguments it takes.

Hope this helps.

Thanks, that helps with the finetunes.create command. So there is no python equivalent of the finetunes.prepare_data CLI command?