code: def check_numpy(x):
      """Makes sure x is a numpy array."""
      if isinstance(x, torch.Tensor):
          x = x.detach().cpu().numpy()
      x = np.asarray(x)
      assert isinstance(x, np.ndarray)
      return x
  
file_path: pytorch_tabular/src/pytorch_tabular/utils/python_utils.py
imports: import math
  import textwrap
  from pathlib import Path
  from typing import IO, Any, Callable, Dict, Optional, Union
  import numpy
  import torch
  import pytorch_tabular
  from .logger import get_logger
label_desc: Use image node_id 5 for calling a global function with example usage: check_numpy(x) and returns: x