code: def get(self, name, arch):
          
          if type(arch) is str:
              arch = archinfo.arch_from_id(arch)
          if name in self.procedures:
              proc = copy.deepcopy(self.procedures[name])
              self._apply_metadata(proc, arch)
              return proc
          else:
              return self.get_stub(name, arch)
docs: Get an implementation of the given function specialized for the given arch, or a stub procedure if none exists.
  
          :param name:    The name of the function as a string
          :param arch:    The architecure to use, as either a string or an archinfo.Arch instance
          :return:        A SimProcedure instance representing the function as found in the library