docstr: Retrieve the names, or locations of all dimensions in the hyperparameter search space
  
  Parameters
  ----------
  use_location: Boolean, default=True
      If True and a dimension has a non-null attribute called 'location', its value will be
      used instead of 'name'
  
  Returns
  -------
  names: List
      A list of strings or tuples, in which each value is the name or location of the
      dimension at that index
docstr_tok: ["Retrieve","the","names",",","or","locations","of","all","dimensions","in","the","hyperparameter","search","space","Parameters","--","--","--","--","--","use_location",":","Boolean",",","default=True","If","True","and","a","dimension","has","a","non-null","attribute","called","'location","'",",","its","value","will","be","used","instead","of","'name'","Returns","--","--","--","-","names",":","List","A","list","of","strings","or","tuples",",","in","which","each","value","is","the","name","or","location","of","the","dimension","at","that","index"]
code: def names(self, use_location=True):
      """Retrieve the names, or locations of all dimensions in the hyperparameter search space
  
      Parameters
      ----------
      use_location: Boolean, default=True
          If True and a dimension has a non-null attribute called 'location', its value will be
          used instead of 'name'
  
      Returns
      -------
      names: List
          A list of strings or tuples, in which each value is the name or location of the
          dimension at that index"""
      names = []
      for dimension in self.dimensions:
          if (
              use_location
              and hasattr(dimension, "location")
              and dimension.location
          ):
              names.append(dimension.location)
          else:
              names.append(dimension.name)
      return names
  
imports: from hyperparameter_hunter.space.dimensions import Dimension, Real, Integer, Categorical
  from hyperparameter_hunter.utils.general_utils import short_repr
  from functools import reduce
  import numbers
  import numpy
  from sys import maxsize
  from sklearn.utils import check_random_state
  from sklearn.utils.fixes import sp_version
label_desc: Use image node_id 16 for calling the Space obj's underlying member method code with example usage: obj.names(use_location) and returns: names