code: def opacity(self, val):
      self["opacity"] = val
  
imports: from plotly.basedatatypes import BaseLayoutHierarchyType
  import copy
label_desc: Use image node_id 6 for calling the Selection obj's underlying member method code with example usage: obj.opacity(val) without return types