class_docstr: A wrapper that facilitates the use of `TabularSampler` for distributed sampling.
docstr: Sets the remote sampler instance label.
  
  Parameters
  ----------
  X
      The instance to be explained.
  
  Returns
  -------
  label
      The label of the instance to be explained.
docstr_tok: ["Sets","the","remote","sampler","instance","label",".","Parameters","--","--","--","--","--","X","The","instance","to","be","explained",".","Returns","--","--","--","-","label","The","label","of","the","instance","to","be","explained","."]
code: def set_instance_label(self, X: np.ndarray) -> int:
      """
      Sets the remote sampler instance label.
  
      Parameters
      ----------
      X
          The instance to be explained.
  
      Returns
      -------
      label
          The label of the instance to be explained.
      """
  
      self.sampler.set_instance_label(X)
      label = self.sampler.instance_label
  
      return label
  
imports: import logging
  from typing import Any, Callable, Dict, List, Optional, Tuple, Type, Union
  import numpy
  import ray
  from alibi.api.interfaces import Explanation
  from alibi.utils.discretizer import Discretizer
  from alibi.utils.mapping import ohe_to_ord
  from .anchor_base import AnchorBaseBeam
  from .anchor_tabular import AnchorTabular, TabularSampler
  from alibi.utils.distributed import ActorPool
  from functools import partial
label_desc: Use image node_id 3 for calling the RemoteSampler obj's underlying member method code with example usage: obj.set_instance_label(X) and returns: label