class_docstr: A class to wrap access to the global context store
  
  This class hosts static methods to wrap access to and encapsulate the
  singleton content store instance
class_docstr_tok: ["A","class","to","wrap","access","to","the","global","context","store","This","class","hosts","static","methods","to","wrap","access","to","and","encapsulate","the","singleton","content","store","instance"]
docstr: Returns most recently added instance of given Context Type
  
  Parameters
  ----------
  context_type : ContextType
      Context type to retrieve from the store
  
  Returns
  -------
  res : AbstractContext
      An instance of AbstractContext subclass or None
docstr_tok: ["Returns","most","recently","added","instance","of","given","Context","Type","Parameters","--","--","--","--","--","context_type",":","ContextType","Context","type","to","retrieve","from","the","store","Returns","--","--","--","-","res",":","AbstractContext","An","instance","of","AbstractContext","subclass","or","None"]
code: def get_context(context_type):
      """Returns most recently added instance of given Context Type
  
      Parameters
      ----------
      context_type : ContextType
          Context type to retrieve from the store
  
      Returns
      -------
      res : AbstractContext
          An instance of AbstractContext subclass or None
      """
      if not isinstance(context_type, ContextType):
          raise ValueError(
              "context_type must be an instance of ContextType"
          )
  
      if (
          context_type in _ctx.store
          and len(_ctx.store[context_type]) > 0
      ):
          return _ctx.store[context_type][-1]
  
      # If not present
      return None
  
imports: from abc import ABC, abstractmethod
  from enum import Enum
  import collections
label_desc: Use image node_id 1 for calling the ContextStore obj's underlying member method code with example usage: obj.get_context(context_type) and returns: None, _ctx