class_docstr: The main class for setting up components to be used in the `TradingEnv`.
  
  This class if responsible for providing a common way in which different
  components of the library can be created. Specifically, it enables the
  creation of components from a `TradingContext`. Therefore making the creation
  of complex environments simpler where there are only a few things that
  need to be changed from case to case.
  
  Attributes
  ----------
  registered_name : str
      The name under which constructor arguments are to be given in a dictionary
      and passed to a `TradingContext`.
class_docstr_tok: ["The","main","class","for","setting","up","components","to","be","used","in","the","`","TradingEnv","`",".","This","class","if","responsible","for","providing","a","common","way","in","which","different","components","of","the","library","can","be","created",".","Specifically",",","it","enables","the","creation","of","components","from","a","`","TradingContext","`",".","Therefore","making","the","creation","of","complex","environments","simpler","where","there","are","only","a","few","things","that","need","to","be","changed","from","case","to","case",".","Attributes","--","--","--","--","--","registered_name",":","str","The","name","under","which","constructor","arguments","are","to","be","given","in","a","dictionary","and","passed","to","a","`","TradingContext","`","."]
docstr: Resolves which defaults value to use for construction.
  
  A concrete subclass will use this method to resolve which default value
  it should use when creating an instance. The default value should go to
  the value specified for the variable within the `TradingContext`. If that
  one is not provided it will resolve to `value`.
  
  Parameters
  ----------
  key : str
      The name of the attribute to be resolved for the class.
  value : any
      The `value` the attribute should be set to if not provided in the
      `TradingContext`.
  kwargs : dict, optional
      The dictionary to search through for the value associated with `key`.
docstr_tok: ["Resolves","which","defaults","value","to","use","for","construction",".","A","concrete","subclass","will","use","this","method","to","resolve","which","default","value","it","should","use","when","creating","an","instance",".","The","default","value","should","go","to","the","value","specified","for","the","variable","within","the","`","TradingContext","`",".","If","that","one","is","not","provided","it","will","resolve","to","`","value","`",".","Parameters","--","--","--","--","--","key",":","str","The","name","of","the","attribute","to","be","resolved","for","the","class",".","value",":","any","The","`","value","`","the","attribute","should","be","set","to","if","not","provided","in","the","`","TradingContext","`",".","kwargs",":","dict",",","optional","The","dictionary","to","search","through","for","the","value","associated","with","`","key","`","."]
code: def default(self, key: str, value: Any, kwargs: dict = None) -> Any:
      """Resolves which defaults value to use for construction.
  
      A concrete subclass will use this method to resolve which default value
      it should use when creating an instance. The default value should go to
      the value specified for the variable within the `TradingContext`. If that
      one is not provided it will resolve to `value`.
  
      Parameters
      ----------
      key : str
          The name of the attribute to be resolved for the class.
      value : any
          The `value` the attribute should be set to if not provided in the
          `TradingContext`.
      kwargs : dict, optional
          The dictionary to search through for the value associated with `key`.
      """
      if not kwargs:
          return self.context.get(key, None) or value
      return self.context.get(key, None) or kwargs.get(key, value)
  
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 2 for calling the Component obj's underlying member method code with example usage: obj.default(key, value, kwargs) and returns: unknown, unknown