docstr: Sets the opacity of the leaves. With colorscale it is defaulted
  to 1; otherwise it is defaulted to 0.7
  
  The 'opacity' property is a number and may be specified as:
    - An int or float in the interval [0, 1]
  
  Returns
  -------
  int|float
docstr_tok: ["Sets","the","opacity","of","the","leaves",".","With","colorscale","it","is","defaulted","to","1",";","otherwise","it","is","defaulted","to","0.7","The","'opacity","'","property","is","a","number","and","may","be","specified","as",":","-","An","int","or","float","in","the","interval","[","0",",","1","]","Returns","--","--","--","-","int|float"]
code: def opacity(self):
      """
      Sets the opacity of the leaves. With colorscale it is defaulted
      to 1; otherwise it is defaulted to 0.7
  
      The 'opacity' property is a number and may be specified as:
        - An int or float in the interval [0, 1]
  
      Returns
      -------
      int|float
      """
      return self["opacity"]
  
imports: from plotly.basedatatypes import BaseTraceHierarchyType
  import copy
label_desc: Use image node_id 1 for calling the Leaf obj's underlying member method code with example usage: obj.opacity() and returns: self