nodes: 0, module; 1, function_definition; 2, function_name:set_attribute_string; 3, parameters; 4, block; 5, identifier:target; 6, identifier:name; 7, identifier:value; 8, expression_statement; 9, expression_statement; 10, comment:""" Sets an attribute to a string 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 string attribute of.
      name : str
          Name of the attribute to set.
      value : string
          Value to set the attribute to. Can be any sort of string type
          that will convert to a ``numpy.bytes_``
  
      See Also
      --------
      set_attributes_all
  
      """; 11, call; 12, identifier:set_attribute; 13, argument_list; 14, identifier:target; 15, identifier:name; 16, call; 17, attribute; 18, argument_list; 19, identifier:np; 20, identifier:bytes_; 21, identifier:value
code: def set_attribute_string(target, name, value):
      """ Sets an attribute to a string 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 string attribute of.
      name : str
          Name of the attribute to set.
      value : string
          Value to set the attribute to. Can be any sort of string type
          that will convert to a ``numpy.bytes_``
  
      See Also
      --------
      set_attributes_all
  
      """
      set_attribute(target, name, np.bytes_(value))