class_docstr: Metaclass that executes `__init__` of instance in its core.
  
  This class works with the `TradingContext` class to ensure the correct
  data is being given to the instance created by a concrete class that has
  subclassed `Component`.
class_docstr_tok: ["Metaclass","that","executes","`","__init__","`","of","instance","in","its","core",".","This","class","works","with","the","`","TradingContext","`","class","to","ensure","the","correct","data","is","being","given","to","the","instance","created","by","a","concrete","class","that","has","subclassed","`","Component","`","."]
docstr: Parameters
  ----------
  args :
      positional arguments to give constructor of subclass of `Component`
  kwargs :
      keyword arguments to give constructor of subclass of `Component`
  
  Returns
  -------
  `Component`
      An instance of a concrete class the subclasses `Component`
docstr_tok: ["Parameters","--","--","--","--","--","args",":","positional","arguments","to","give","constructor","of","subclass","of","`","Component","`","kwargs",":","keyword","arguments","to","give","constructor","of","subclass","of","`","Component","`","Returns","--","--","--","-","`","Component","`","An","instance","of","a","concrete","class","the","subclasses","`","Component","`"]
code: def __call__(cls, *args, **kwargs) -> "InitContextMeta":
      """
  
      Parameters
      ----------
      args :
          positional arguments to give constructor of subclass of `Component`
      kwargs :
          keyword arguments to give constructor of subclass of `Component`
  
      Returns
      -------
      `Component`
          An instance of a concrete class the subclasses `Component`
      """
      context = TradingContext.get_context()
      registered_name = registry.registry()[cls]
  
      data = context.data.get(registered_name, {})
      config = {**context.shared, **data}
  
      instance = cls.__new__(cls, *args, **kwargs)
      setattr(instance, "context", Context(**config))
      instance.__init__(*args, **kwargs)
  
      return instance
  
file_path: tensortrade/tensortrade/core/component.py
imports: from abc import ABC, ABCMeta
  from typing import Any
  from .None import registry
  from tensortrade.core.context import TradingContext, Context
  from tensortrade.core.base import Identifiable
label_desc: Use image node_id 1 for calling the InitContextMeta obj's underlying member method code with example usage: obj.__call__(cls) and returns: instance