code: def test_remove_scalars_single(sphere, hexbeam):
      """Ensure no scalars are added when plotting datasets if copy_mesh=True."""
      # test single component scalars
      sphere.clear_data()
      hexbeam.clear_data()
      pl = pv.Plotter()
      pl.add_mesh(
          sphere, scalars=range(sphere.n_points), copy_mesh=True
      )
      pl.add_mesh(
          hexbeam, scalars=range(hexbeam.n_cells), copy_mesh=True
      )
  
      # arrays will be added to the mesh
      pl.mesh.n_arrays == 1
  
      # but not the original data
      assert sphere.n_arrays == 0
      assert hexbeam.n_arrays == 0
  
      pl.close()
  
imports: import os
  import numpy
  import pytest
  import vtk
  import pyvista
  from pyvista.core.errors import MissingDataError, PyVistaDeprecationWarning
  from pyvista.plotting import _plotting
  from pyvista.plotting.errors import RenderWindowUnavailable
  from pyvista.plotting.utilities.gl_checks import uses_egl
label_desc: Use image node_id 14 for calling a global function with example usage: test_remove_scalars_single(sphere, hexbeam) without return types