parameters: (type)
return_statement: return False
docstring: Return true iff |type| is shmem or has it buried within.
docstring_summary: Return true iff |type| is shmem or has it buried within.
docstring_tokens: Return true iff |type| is shmem or has it buried within .
function: def hasshmem(type):
      """Return true iff |type| is shmem or has it buried within."""
      class found: pass
      class findShmem(TypeVisitor):
          def visitShmemType(self, s):  raise found()
      try:
          type.accept(findShmem())
      except found:
          return True
      return False
function_tokens: def hasshmem ( type ) : class found : pass class findShmem ( TypeVisitor ) : def visitShmemType ( self , s ) : raise found ( ) try : type . accept ( findShmem ( ) ) except found : return True return False