@staticmethod
def set(obj, key, value):
    """
		If `obj` is a `dict`, `obj[key] = value`. Otherwise, `setattr(obj, key, value)`.

		Parameters
		----------
		obj : dict or object
			The target to set a value.
		key : str
			A `dict` key or an attribute name.
		value : any
			The value that the attribute or key-value pair to store.
		"""
    if isinstance(obj, dict):
        obj[key] = value
    else:
        setattr(obj, key, value)
