code: def test_sort_by_string():
      nums = np.random.rand(1000)
      strings = [str(n) for n in nums]
      df = pd.DataFrame({"nums": nums, "strings": strings})
      df_copy = df.copy(deep=True)
      sort_in_place(df, ["strings"])
      df_copy.sort_values("strings", inplace=True)
      assert (df["nums"].array == df_copy["nums"].array).all()
      assert (df["strings"].array == df_copy["strings"].array).all()
  
imports: from glow.wgr.model_functions import *
  from glow.wgr.model_functions import _prepare_covariates, _prepare_labels_and_warn
  import math
  import numpy
  import pandas
  from pyspark.sql import Row
  import pytest
  from sklearn.linear_model import LogisticRegression
  from sklearn.datasets import load_breast_cancer
label_desc: Use image node_id 2 for calling a global function with example usage: test_sort_by_string() without return types