def tag_create(self, label, instances=None, domains=None, nodebalancers=None,<EOL>volumes=None, entities=[]):
linode_ids, nodebalancer_ids, domain_ids, volume_ids = [], [], [], []<EOL>sorter = zip((linode_ids, nodebalancer_ids, domain_ids, volume_ids),<EOL>(instances, nodebalancers, domains, volumes))<EOL>for id_list, input_list in sorter:<EOL><INDENT>if input_list is not None:<EOL><INDENT>for cur in input_list:<EOL><INDENT>if isinstance(cur, int):<EOL><INDENT>id_list.append(cur)<EOL><DEDENT>else:<EOL><INDENT>id_list.append(cur.id)<EOL><DEDENT><DEDENT><DEDENT><DEDENT>type_map = {<EOL>Instance: linode_ids,<EOL>NodeBalancer: nodebalancer_ids,<EOL>Domain: domain_ids,<EOL>Volume: volume_ids,<EOL>}<EOL>for e in entities:<EOL><INDENT>if type(e) in type_map:<EOL><INDENT>type_map[type(e)].append(e.id)<EOL><DEDENT>else:<EOL><INDENT>raise ValueError('<STR_LIT>'.format(type(e)))<EOL><DEDENT><DEDENT>params = {<EOL>'<STR_LIT:label>': label,<EOL>'<STR_LIT>': linode_ids or None,<EOL>'<STR_LIT>': nodebalancer_ids or None,<EOL>'<STR_LIT>': domain_ids or None,<EOL>'<STR_LIT>': volume_ids or None,<EOL>}<EOL>result = self.post('<STR_LIT>', data=params)<EOL>if not '<STR_LIT:label>' in result:<EOL><INDENT>raise UnexpectedResponseError('<STR_LIT>', json=result)<EOL><DEDENT>t = Tag(self, result['<STR_LIT:label>'], result)<EOL>return t<EOL>
Creates a new Tag and optionally applies it to the given entities.

:param label: The label for the new Tag
:type label: str
:param entities: A list of objects to apply this Tag to upon creation.
                 May only be taggable types (Linode Instances, Domains,
                 NodeBalancers, or Volumes).  These are applied *in addition
                 to* any IDs specified with ``instances``, ``domains``,
                 ``nodebalancers``, or ``volumes``, and is a convenience
                 for sending multiple entity types without sorting them
                 yourself.
:type entities: list of Instance, Domain, NodeBalancer, and/or Volume
:param instances: A list of Linode Instances to apply this Tag to upon
                creation
:type instances: list of Instance or list of int
:param domains: A list of Domains to apply this Tag to upon
                creation
:type domains: list of Domain or list of int
:param nodebalancers: A list of NodeBalancers to apply this Tag to upon
                creation
:type nodebalancers: list of NodeBalancer or list of int
:param volumes: A list of Volumes to apply this Tag to upon
                creation
:type volumes: list of Volumes or list of int

:returns: The new Tag
:rtype: Tag