def METHOD_NAME(fledge_url):
    payload = {"name": "Sine", "type": "south", "plugin": "sinusoid", "enabled": True, "config": {}}
    post_url = "/fledge/service"
    conn = http.client.HTTPConnection(fledge_url)
    conn.request("POST", post_url, json.dumps(payload))
    res = conn.getresponse()
    assert 200 == res.status, "ERROR! POST {} request failed".format(post_url)
    conn = http.client.HTTPConnection(fledge_url)
    data = {"name": task_name,
            "plugin": "{}".format(north_plugin),
            "type": "north",
            "schedule_type": 3,
            "schedule_day": 0,
            "schedule_time": 0,
            "schedule_repeat": 30,
            "schedule_enabled": "true",
            "config": {"PIServerEndpoint": {"value": "Edge Data Store"},
                       "NamingScheme": {"value": "Backward compatibility"}}
            }
    conn.request("POST", '/fledge/scheduled/task', json.dumps(data))
    r = conn.getresponse()
    assert 200 == r.status