code: def inject_context(self, entity, metadata={}):
          
          top_frame = self.frame_stack[0] if len(self.frame_stack) > 0 else None
          if top_frame and top_frame.metadata_matches(metadata):
              top_frame.merge_context(entity, metadata)
          else:
              frame = ContextManagerFrame(entities=[entity], metadata=metadata.copy())
              self.frame_stack.insert(0, frame)
docs: Args:
              entity(object):
                  format {'data': 'Entity tag as <str>',
                          'key': 'entity proper name as <str>',
                           'confidence': <float>'
                           }
              metadata(object): dict, arbitrary metadata about the entity being added