code: def removeTabByName(self, name):
      # Remove the tab if it is attached
      attached = False
      for index in range(self.count()):
          if str(name) == str(self.tabText(index)):
              self.removeTab(index)
              attached = True
              break
  
      # If the tab is not attached, close it's window and
      # remove the reference to it
      if not attached:
          for key in self.detachedTabs:
              if str(name) == str(key):
                  self.detachedTabs[key].onCloseSignal.disconnect()
                  self.detachedTabs[key].close()
                  del self.detachedTabs[key]
                  break
  
file_path: PandasGUI/pandasgui/widgets/detachable_tab_widget.py
imports: from PyQt5 import QtGui, QtCore, QtWidgets
  from PyQt5.QtCore import pyqtSignal, pyqtSlot
label_desc: Use image node_id 6 for calling the DetachableTabWidget obj's underlying member method code with example usage: obj.removeTabByName(name) without return types