code: def create_thing(self, lid):
          
          evt = self.create_thing_async(lid)
          self._wait_and_except_if_failed(evt)
          try:
              with self.__new_things:
                  return self.__new_things.pop(lid)
          except KeyError as ex:
              raise raise_from(IOTClientError('Thing %s not in cache (post-create)' % lid), ex)
docs: Create a new Thing with a local id (lid).
  
          Returns a [Thing](Thing.m.html#IoticAgent.IOT.Thing.Thing)  object if successful
          or if the Thing already exists
  
          Raises [IOTException](./Exceptions.m.html#IoticAgent.IOT.Exceptions.IOTException)
          containing the error if the infrastructure detects a problem
  
          Raises [LinkException](../Core/AmqpLink.m.html#IoticAgent.Core.AmqpLink.LinkException)
          if there is a communications problem between you and the infrastructure
  
          `lid` (required) (string) local identifier of your Thing.  The local id is your name or nickname for the thing.
          It's "local" in that it's only available to you on this container, not searchable and not visible to others.