def pspace_independent(a, b):
 a_symbols = set(pspace(b).symbols)
 b_symbols = set(pspace(a).symbols)
 if (len(a_symbols.intersection(b_symbols)) == 0):
  return True
 return None

def pspace_independent ( a , b ) : a_symbols = set ( pspace ( b ) . symbols ) b_symbols = set ( pspace ( a ) . symbols ) if ( len ( a_symbols . intersection ( b_symbols ) ) == 0 ) : return True return None
tests for independence between a and b by checking if their pspaces have overlapping symbols .