code: def _get_name(self):
          
          if self.name is not None:
              return self.name
          if self.scoring_ is None:
              return 'score'
          if isinstance(self.scoring_, str):
              return self.scoring_
          if isinstance(self.scoring_, partial):
              return self.scoring_.func.__name__
          if isinstance(self.scoring_, _BaseScorer):
              return self.scoring_._score_func.__name__
          return self.scoring_.__name__
docs: Find name of scoring function.