For example to get the version of Docling you might use code of
the following form.
var options = new PythonOptions();
options.Initialize(PythonEnvironment.Current, null);
using var rt = PythonEnvironment.Current.GetRuntime();
using var scope = rt.CreateScope();
rt.StdOutWriter = Console.Out;
rt.StdErrWriter = Console.Error;
rt.AutoInitializeRuntime(scope, null);
var result = scope.EvalString("__import__('importlib.metadata', fromlist=['metadata']).version('docling')\n");
Console.WriteLine(result);