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