code: def test_edge_opacity(sphere):
      edge_opacity = np.random.default_rng().random()
      pl = pv.Plotter(sphere)
      actor = pl.add_mesh(sphere, edge_opacity=edge_opacity)
      assert actor.prop.edge_opacity == edge_opacity
  
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 42 for calling a global function with example usage: test_edge_opacity(sphere) without return types