parameters: (ips)
return_statement: return [value[0] for (key,value) in list(hist.items()) if len(value)==1]
docstring: Filter out hosts with more nodes per IP
docstring_summary: Filter out hosts with more nodes per IP
docstring_tokens: Filter out hosts with more nodes per IP
function: def filtermultiport(ips):
      '''Filter out hosts with more nodes per IP'''
      hist = collections.defaultdict(list)
      for ip in ips:
          hist[ip['sortkey']].append(ip)
      return [value[0] for (key,value) in list(hist.items()) if len(value)==1]
function_tokens: def filtermultiport ( ips ) : hist = collections . defaultdict ( list ) for ip in ips : hist [ ip [ 'sortkey' ] ] . append ( ip ) return [ value [ 0 ] for ( key , value ) in list ( hist . items ( ) ) if len ( value ) == 1 ]