parameters: (address)
docstring: Return the types of the address
  
      This can be 'AF_INET', 'AF_UNIX', or 'AF_PIPE'
docstring_summary: Return the types of the address
docstring_tokens: Return the types of the address
function: def address_type(address):
      '''
      Return the types of the address
  
      This can be 'AF_INET', 'AF_UNIX', or 'AF_PIPE'
      '''
      if type(address) == tuple:
          return 'AF_INET'
      elif type(address) is str and address.startswith('\\\\'):
          return 'AF_PIPE'
      elif type(address) is str or util.is_abstract_socket_namespace(address):
          return 'AF_UNIX'
      else:
          raise ValueError('address type of %r unrecognized' % address)
function_tokens: def address_type ( address ) : if type ( address ) == tuple : return 'AF_INET' elif type ( address ) is str and address . startswith ( '\\\\' ) : return 'AF_PIPE' elif type ( address ) is str or util . is_abstract_socket_namespace ( address ) : return 'AF_UNIX' else : raise ValueError ( 'address type of %r unrecognized' % address )