code: def cope_with_keyword_arguments(kwargs):
      # inplace convert kwargs
      for k in kwargs.keys():
          if isinstance(kwargs[k], tuple):
              kwargs[k] = numpy_to_tensors(kwargs[k])
          if isinstance(kwargs[k], torch.Tensor):
              kwargs[k] = kwargs[k].cpu().detach().numpy()
          if np.isscalar(kwargs[k]):
              kwargs[k] = np.array(kwargs[k])
  
file_path: BigDL/python/nano/src/bigdl/nano/pytorch/model.py
imports: import torch
  from bigdl.nano.pytorch.lightning import LightningModule
  from bigdl.nano.utils.common import invalidInputError
  from bigdl.nano.utils.common import AcceleratedModel
  import numpy
  from typing import Sequence
label_desc: Use image node_id 9 for calling the AcceleratedLightningModule obj's underlying member method code with example usage: obj.cope_with_keyword_arguments(kwargs) without return types