def METHOD_NAME(libname):
    import importlib
    module = importlib.import_module('robot.libraries.' + libname)
    source = module.__file__
    if source.endswith('.pyc'):
        source = source[:-1]
    elif source.endswith('$py.class'):
        source = source[:-9] + '.py'
    return source