code: def display_name(name, obj, local):
      
      prefix = '' if local else '.'
  
      if isinstance(obj, SeeError):
          suffix = '?'
      elif hasattr(obj, '__call__'):
          suffix = '()'
      else:
          suffix = ''
  
      return ''.join((prefix, name, suffix))
docs: 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.