code: def test_color_opacity():
      color = pv.Color(opacity=0.5)
      assert color.opacity == 128
  
file_path: pyvista/tests/plotting/test_colors.py
imports: import itertools
  import matplotlib
  import numpy
  import pytest
  import pyvista
  from pyvista.plotting.colors import get_cmap_safe
label_desc: Use image node_id 3 for calling a global function with example usage: test_color_opacity() without return types