import json


def create_label(name, color, repos, session, origin):
    """
    Creates label

    :param name: name of the label
    :param color: color of the label
    :param repos: repository where label is created
    :param session: session for communication
    :param origin: repository where the label came from
    :return: message code 200 (int)
    """
    for repo in repos:
        if(repo != origin):
            data = {"name": name, "color": color}
            json_data = json.dumps(data)
            r = session.post("https://api.github.com/repos/"+repo+"/labels", json_data)
    return "200"