code: def test_profiler_commandline():
      data_directory = os.path.dirname(os.path.abspath(__file__))
      # Create a copy of the current environment variables
      env = os.environ.copy()
      # Setting the 'COLUMNS' environment variable to a large number
      # because the terminal output shouldn't be compressed for
      # text validations below.
      env["COLUMNS"] = "10000"
  
      sp_completed = subprocess.run(
          [
              "python",
              "-m",
              "cudf.pandas",
              "--profile",
              data_directory + "/data/profile_basic.py",
          ],
          capture_output=True,
          text=True,
          env=env,
      )
      assert sp_completed.returncode == 0
      output = sp_completed.stdout
  
      for string in [
          "Total time",
          "Stats",
          "Function",
          "GPU ncalls",
          "GPU cumtime",
          "GPU percall",
          "CPU ncalls",
          "CPU cumtime",
          "CPU percall",
      ]:
          assert string in output
  
file_path: cudf/python/cudf/cudf_pandas_tests/test_profiler.py
imports: import os
  import subprocess
  from cudf.pandas import LOADED, Profiler
  import numpy
  import pandas
label_desc: Use image node_id 4 for calling a global function with example usage: test_profiler_commandline() without return types