code: def remove_inner_brackets(message: str) -> str:
      """Remove the inner brackets i.e., [ or ], from a string, outer brackets are kept.
  
      Parameters
      ----------
      message: str
          The string to remove the inner brackets from.
  
      Returns
      -------
      str:
          A new message without any inner brackets.
  
      """
      level = 0
      new_message = ""
      for char in message:
          if char == "[":
              if level == 0:
                  new_message += char
              level += 1
          elif char == "]":
              if level == 1:
                  new_message += char
              level -= 1
          else:
              new_message += char
          assert level >= 0
      return new_message
  
file_path: tsflex/tsflex/utils/logging.py
imports: import logging
  import warnings
  from pathlib import Path
  from typing import Union
  import pandas
label_desc: Use image node_id 1 for calling a global function with example usage: remove_inner_brackets(message) and returns: new_message