code: def make_ndarray(tensor: Any) -> Optional["np.ndarray"]:
      if tensor_util:
          res = tensor_util.make_ndarray(tensor)
          # Tensorboard can log generic objects, and we don't want to save them
          if res.dtype == "object":
              return None
          else:
              return res  # type: ignore
      else:
          wandb.termwarn(
              "Can't convert tensor summary, upgrade tensorboard with `pip"
              " install tensorboard --upgrade`"
          )
          return None
  
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 1 for calling a global function with example usage: make_ndarray(tensor) and returns: None, None, res