<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def display_name(name, obj, local):
 """ Get the display name of an object. Keyword arguments (all required):
 * ``name`` -- the name of the object as a string. * ``obj`` -- the object itself. * ``local`` -- a boolean value indicating whether the object is in local scope or owned by an object. """

    prefix = '' if local else '.'

    if isinstance(obj, SeeError):
        suffix = '?'
    elif hasattr(obj, '__call__'):
        suffix = '()'
    else:
        suffix = ''

    return ''.join((prefix, name, suffix))