https://github.com/ecell/bioimage_workflows/blob/ab906885c4d90355bc18913dbff8c50642d2c8d1/user_functions.py#L210