code: def if_pandas_df_convert_to_numpy(obj: Any) -> Any:
      """Return a Numpy array from a Pandas dataframe.
  
      Iterating over a DataFrame has weird side effects, such as the first
      row being the column names. Converting to Numpy is more safe.
      """
      if pd is not None and isinstance(obj, pd.DataFrame):
          return obj.values
      else:
          return obj
  
imports: import base64
  import collections
  import copy
  import json
  import math
  import os
  import re
  import tempfile
  import uuid
  from contextlib import contextmanager
  from typing import Any, Callable, Dict, Iterable, Iterator, List, Optional, Sequence, Tuple, Type, Union
  from urllib.parse import urlparse, uses_netloc, uses_params, uses_relative
  import numpy
  from branca.element import Element, Figure
  from branca.utilities import _locations_mirror, _parse_size, none_max, none_min, write_png
label_desc: Use image node_id 5 for calling a global function with example usage: if_pandas_df_convert_to_numpy(obj) and returns: obj, obj