def read_namespace_for_service_instance(name, instance, cluster=None, soa_dir=DEFAULT_SOA_DIR):
    if not cluster:
        cluster = load_system_paasta_config().get_cluster()
    srv_info = service_configuration_lib.read_extra_service_information(
        name,
        "marathon-%s" % cluster,
        soa_dir
    )[instance]
    return srv_info['nerve_ns'] if 'nerve_ns' in srv_info else instance
Retreive a service instance's nerve namespace from its configuration file.
dataset/ETHPy150Open Yelp/paasta/paasta_tools/marathon_tools.py/read_namespace_for_service_instance