code: def trim(self, value):
      if isinstance(value, bool):
          value = Trim.yes if value else Trim.no
  
      self._validate_named(value, Trim)
  
      self._specifier["trim"] = value
      return self
  
imports: import collections
label_desc: Use image node_id 15 for calling the Format obj's underlying member method code with example usage: obj.trim(value) and returns: self