code: def set_default_processor(self) -> DataProcessor:
      api_type = self.api_type
  
      if api_type in ModelServer.API_TYPES.get("VISION"):
          from chitra.data_processing import DefaultVisionProcessor
  
          self.data_processor = DefaultVisionProcessor.vision
  
      elif api_type in ModelServer.API_TYPES.get("NLP"):
          from chitra.data_processing import DefaultTextProcessor
  
          self.data_processor = DefaultTextProcessor.nlp
  
      else:
          raise NotImplementedError(
              f"{api_type} is not implemented! Available types are -\
                   {ModelServer.get_available_api_types()}"
          )
      return self.data_processor
  
file_path: chitra/chitra/serve/base.py
imports: import itertools
  from typing import Callable, List, Optional
  from chitra.data_processing import DataProcessor
  from chitra.serve import constants
label_desc: Use image node_id 4 for calling the ModelServer obj's underlying member method code with example usage: obj.set_default_processor() and returns: self