code: def get_foreign_struct(namespace, name):
      
  
      get_foreign_module(namespace)
  
      try:
          return ForeignStruct.get(namespace, name)
      except KeyError:
          raise ForeignError("Foreign %s.%s not supported" % (namespace, name))
docs: Returns a ForeignStruct implementation or raises ForeignError