code: def _string_or_object(self, dim_key, dim_values):
      for dim_value in dim_values:
          is_str = isinstance(dim_value, str)
          is_func = self.is_function(dim_value)
          is_number = self.is_number(dim_value)
  
          if not is_str and not is_func and not is_number:
              msg = "\n The value '{}' of type '{}' in the search space dimension '{}' must be number, string or function \n".format(
                  dim_value, type(dim_value), dim_key
              )
              raise ValueError(msg)
  
file_path: Hyperactive/hyperactive/search_space.py
imports: import numpy
label_desc: Use image node_id 8 for calling the SearchSpace obj's underlying member method code with example usage: obj._string_or_object(dim_key, dim_values) without return types