docstr: This function examine stacktrace in order to determine if it has
  been called from the __init__ function of the given instance
  
  Parameters
  ----------
  self : `object`
      The instance
  
  Returns
  -------
  set_int_init : `bool`
      True if this function was called by __init__
docstr_tok: ["This","function","examine","stacktrace","in","order","to","determine","if","it","has","been","called","from","the","__init__","function","of","the","given","instance","Parameters","--","--","--","--","--","self",":","`","object","`","The","instance","Returns","--","--","--","-","set_int_init",":","`","bool","`","True","if","this","function","was","called","by","__init__"]
code: def detect_if_called_in_init(self):
      """This function examine stacktrace in order to determine if it has
      been called from the __init__ function of the given instance
  
      Parameters
      ----------
      self : `object`
          The instance
  
      Returns
      -------
      set_int_init : `bool`
          True if this function was called by __init__
      """
      # It is forbidden to set a readonly (non writable) attribute
      # expect from __init__ function of the class
      set_in_init = False
      # trace contains information of the current execution
      # environment
      trace = inspect.currentframe()
      while trace is not None:
          # We retrieve the name of the executor (for example the
          # function that launched this command)
          exec_name = trace.f_code.co_name
          # We inspect the local variables
          if "self" in trace.f_locals:
              local_self = trace.f_locals["self"]
          else:
              local_self = None
          # We check if environment corresponds to our instance's
          # __init__
          if exec_name == "__init__" and local_self == self:
              set_in_init = True
              break
          # If this frame was not the good one, we try the previous
          # one, the one that has launched it
          # If there is no previous one, `None` will be returned
          trace = trace.f_back
  
      return set_in_init
  
imports: import os
  import inspect
  from datetime import datetime
  from abc import ABCMeta
  import json
  import pydoc
  import numpy
  import numpydoc
  from numpydoc import docscrape
  import copy
label_desc: Use image node_id 3 for calling the BaseMeta obj's underlying member method code with example usage: obj.detect_if_called_in_init() and returns: set_in_init