

def email_to_hrn(auth_hrn, email):
    parts = email.split('@')
    username = parts[0]
    username = username.replace('.', '_').replace('+', '_')
    person_hrn = '.'.join([auth_hrn, username])
    return person_hrn

dataset/ETHPy150Open fp7-ofelia/ocf/expedient/src/python/sfa/util/namespace.py email_to_hrn/original