Please add a docstring and consider whether you want to make this function public.