docs: def set_attribute(target, name, value):
      """ Sets an attribute on a Dataset or Group.
  
      If the attribute `name` doesn't exist yet, it is created. If it
      already exists, it is overwritten if it differs from `value`.
  
      Notes
      -----
      ``set_attributes_all`` is the fastest way to set and delete
      Attributes in bulk.
  
      Parameters
      ----------
      target : Dataset or Group
          Dataset or Group to set the attribute of.
      name : str
          Name of the attribute to set.
      value : numpy type other than numpy.unicode\_
          Value to set the attribute to.
  
      See Also
      --------
      set_attributes_all
  
      """
      try:
          target.attrs.modify(name, value)
      except:
          target.attrs.create(name, value)