def globalsfilter(input_dict, check_all=False, filters=None, exclude_private=None, exclude_capitalized=None, exclude_uppercase=None, exclude_unsupported=None, excluded_names=None):
 output_dict = {}
 for (key, value) in list(input_dict.items()):
  excluded = ((exclude_private and key.startswith('_')) or (exclude_capitalized and key[0].isupper()) or (exclude_uppercase and key.isupper() and (len(key) > 1) and (not key[1:].isdigit())) or (key in excluded_names) or (exclude_unsupported and (not is_supported(value, check_all=check_all, filters=filters))))
  if (not excluded):
   output_dict[key] = value
 return output_dict

def globalsfilter ( input_dict , check_all = False , filters = None , exclude_private = None , exclude_capitalized = None , exclude_uppercase = None , exclude_unsupported = None , excluded_names = None ) : output_dict = { } for ( key , value ) in list ( input_dict . items ( ) ) : excluded = ( ( exclude_private and key . startswith ( '_' ) ) or ( exclude_capitalized and key [ 0 ] . isupper ( ) ) or ( exclude_uppercase and key . isupper ( ) and ( len ( key ) > 1 ) and ( not key [ 1 : ] . isdigit ( ) ) ) or ( key in excluded_names ) or ( exclude_unsupported and ( not is_supported ( value , check_all = check_all , filters = filters ) ) ) ) if ( not excluded ) : output_dict [ key ] = value return output_dict
keep only objects that can be pickled .