code: def put_subsegment(self, subsegment):
          
          current_entity = self.get_trace_entity()
  
          if not self._is_subsegment(current_entity) and current_entity.initializing:
              if global_sdk_config.sdk_enabled():
                  log.warning("Subsegment %s discarded due to Lambda worker still initializing" % subsegment.name)
              return
  
          current_entity.add_subsegment(subsegment)
          self._local.entities.append(subsegment)
docs: Refresh the facade segment every time this function is invoked to prevent
          a new subsegment from being attached to a leaked segment/subsegment.