code: def CopyToDict(self):
      
      dictionary = {}
      for attribute_name, attribute_value in self.GetAttributes():
        if attribute_value is None:
          continue
  
        dictionary[attribute_name] = attribute_value
  
      return dictionary
docs: Copies the attribute container to a dictionary.
  
      Returns:
        dict[str, object]: attribute values per name.