code: def namespaced_tag(tag: str, namespace: str = "") -> str:
      if not namespace:
          return tag
      elif tag in namespace:
          # This happens with tensorboardX
          return namespace
      else:
          return namespace + "/" + tag
  
file_path: wandb/wandb/integration/tensorboard/log.py
imports: import io
  import re
  import time
  from typing import TYPE_CHECKING, Any, Dict, List, Optional, Union
  import wandb
  import wandb.util
  from wandb.sdk.lib import telemetry
  from wandb.viz import custom_chart
label_desc: Use image node_id 2 for calling a global function with example usage: namespaced_tag(tag, namespace) and returns: tag, namespace, unknown