code: def create_container(self, X_output, X_original, columns):
      pd = check_library_installed("pandas")
      columns = get_columns(columns)
      index = (
          X_original.index
          if isinstance(X_original, pd.DataFrame)
          else None
      )
  
      if isinstance(X_output, pd.DataFrame):
          if columns is not None:
              X_output.columns = columns
          return X_output
  
      return pd.DataFrame(
          X_output, index=index, columns=columns, copy=False
      )
  
imports: import importlib
  from functools import wraps
  from typing import Protocol, runtime_checkable
  import numpy
  from scipy.sparse import issparse
  from .._config import get_config
  from ._available_if import available_if
label_desc: Use image node_id 1 for calling the PandasAdapter obj's underlying member method code with example usage: obj.create_container(X_output, X_original, columns) and returns: pd, X_output