code: def add_label(self, name, color=None):
          
          args = {
              'name': name,
              'color': color
          }
          _perform_command(self, 'label_register', args)
          return self.get_label(name)
docs: Create a new label.
  
          .. warning:: Requires Todoist premium.
  
          :param name: The name of the label.
          :type name: str
          :param color: The color of the label.
          :type color: str
          :return: The newly created label.
          :rtype: :class:`pytodoist.todoist.Label`
  
          >>> from pytodoist import todoist
          >>> user = todoist.login('john.doe@gmail.com', 'password')
          >>> label = user.add_label('family')