def function_to_signature(function_name):
    """
    Convert function definition to function signature.

    input: string
    output: string
    """
    import sha3
    signature = sha3.keccak_256(str(function_name).encode('utf-8')).hexdigest(
        ).lower()[:8]
    return signature
