code: def get_scope_by_name(self, scope_name):
          
          query_parameters = {}
          if scope_name is not None:
              query_parameters['scopeName'] = self._serialize.query('scope_name', scope_name, 'str')
          response = self._send(http_method='GET',
                                location_id='4e11e2bf-1e79-4eb5-8f34-a6337bd0de38',
                                version='5.0-preview.2',
                                query_parameters=query_parameters)
          return self._deserialize('IdentityScope', response)
docs: GetScopeByName.
          [Preview API]
          :param str scope_name:
          :rtype: :class:`<IdentityScope> <azure.devops.v5_0.identity.models.IdentityScope>`