def get_foreign(namespace, name):
 try:
  return get_foreign_struct(namespace, name)
 except ForeignError:
  return None

def get_foreign ( namespace , name ) : try : return get_foreign_struct ( namespace , name ) except ForeignError : return None
returns a foreignstruct instance or none .