def _make_set(var):
 if (var is None):
  return set()
 if (not isinstance(var, list)):
  if isinstance(var, str):
   var = var.split()
  else:
   var = list(var)
 return set(var)

def _make_set ( var ) : if ( var is None ) : return set ( ) if ( not isinstance ( var , list ) ) : if isinstance ( var , str ) : var = var . split ( ) else : var = list ( var ) return set ( var )
force var to be a set .