code: def prepare_hist_data(data, bins):
      data, numeric_data = NumericPlotBase.prepare_numeric_data(data)
      if is_integer(bins):
          # computes boundaries for the column
          bins = HistogramPlotBase.get_bins(data._to_spark(), bins)
  
      return numeric_data, bins
  
imports: import importlib
  import pandas
  import numpy
  from pandas.core.base import PandasObject
  from pandas.core.dtypes.inference import is_integer
  from pyspark.ml.feature import Bucketizer
  from pyspark.mllib.stat import KernelDensity
  from pyspark.sql import functions
  from pyspark.pandas.missing import unsupported_function
  from pyspark.pandas.config import get_option
  from pyspark.pandas.utils import name_like_string
label_desc: Use image node_id 1 for calling the HistogramPlotBase obj's underlying member method code with example usage: obj.prepare_hist_data(data, bins) and returns: numeric_data,  bins