code: def test_remove_missing():
      data = pd.DataFrame(
          {"a": [1.0, np.nan, 3, np.inf], "b": [1, 2, 3, 4]}
      )
      data2 = pd.DataFrame({"a": [1.0, 3, np.inf], "b": [1, 3, 4]})
      data3 = pd.DataFrame({"a": [1.0, 3], "b": [1, 3]})
  
      with warnings.catch_warnings(record=True) as w:
          res = remove_missing(data, na_rm=True, vars=["b"])
          res.equals(data)
  
          res = remove_missing(data)
          res.equals(data2)
  
          res = remove_missing(data, na_rm=True, finite=True)
          res.equals(data3)
          assert len(w) == 1
  
file_path: plotnine/tests/test_utils.py
imports: import itertools
  import random
  import string
  import warnings
  import numpy
  import pandas
  from plotnine._utils import _margins, add_margins, join_keys, match, ninteraction, pivot_apply, remove_missing, uniquecols
  from plotnine.data import mtcars
label_desc: Use image node_id 8 for calling a global function with example usage: test_remove_missing() without return types