class_docstr: A class of the plot layer object.
  
  Do not use this class explicitly.
  
  Instead, you should construct its objects with functions `geom_point()`,
  `geom_contour()`, `geom_boxplot()`, `geom_text()` etc.
class_docstr_tok: ["A","class","of","the","plot","layer","object",".","Do","not","use","this","class","explicitly",".","Instead",",","you","should","construct","its","objects","with","functions","`","geom_point","(",")","`",",","`","geom_contour","(",")","`",",","`","geom_boxplot","(",")","`",",","`","geom_text","(",")","`","etc","."]
code: def duplicate(cls, other):
      # A shallow copy!
      return LayerSpec(**other.props())
  
imports: import io
  import json
  import os
  from typing import Union
  from lets_plot._global_settings import get_global_bool, has_global_value, FRAGMENTS_ENABLED
label_desc: Use image node_id 1 for calling the LayerSpec obj's underlying member method code with example usage: obj.duplicate(cls, other) and returns: LayerSpec