@staticmethod
def set_instance_attributes(arg_dict):
    """Set attributes of the :attr:`instance` based on the given arg_dict.

        Args:
          arg_dict (dict): Dictionary of (attribute, value).
        Raises:
          InvalidInputError: if attributes are not validly set.
        """
    for arg, value in arg_dict.items():
        if arg[0].isupper() and value is not None:
            setattr(arg_dict['instance'], arg.lower(), value)
    for arg, value in arg_dict.items():
        if arg == 'instance':
            continue
        if not arg[0].isupper() and value is not None:
            setattr(arg_dict['instance'], arg, value)
