def METHOD_NAME(
    self,
    peering_service_location=None,  # type: Optional[str]
    peering_service_provider=None,  # type: Optional[str]
    **kwargs  # type: Any
):
    # type: (...) -> Union[str, "models.Enum0"]
    """Checks if the peering service provider is present within 1000 miles of customer's location.
    :param peering_service_location: Gets or sets the peering service location.
    :type peering_service_location: str
    :param peering_service_provider: Gets or sets the peering service provider.
    :type peering_service_provider: str
    :keyword callable cls: A custom type or function that will be passed the direct response
    :return: Enum0 or the result of cls(response)
    :rtype: str or ~azure.mgmt.peering.models.Enum0
    :raises: ~azure.core.exceptions.HttpResponseError
    """
    cls = kwargs.pop('cls', None)  # type: ClsType[Union[str, "models.Enum0"]]
    error_map = kwargs.pop('error_map', {404: ResourceNotFoundError, 409: ResourceExistsError})
    _check_service_provider_availability_input = models.CheckServiceProviderAvailabilityInput(peering_service_location=peering_service_location, peering_service_provider=peering_service_provider)
    api_version = "2020-04-01"
    content_type = kwargs.pop("content_type", "application/json")
    # Construct URL
    url = self.METHOD_NAME.metadata['url']
    path_format_arguments = {
        'subscriptionId': self._serialize.url("self._config.subscription_id", self._config.subscription_id, 'str'),
    }
    url = self._client.format_url(url, **path_format_arguments)
    # Construct parameters
    query_parameters = {}  # type: Dict[str, Any]
    query_parameters['api-version'] = self._serialize.query("api_version", api_version, 'str')
    # Construct headers
    header_parameters = {}  # type: Dict[str, Any]
    header_parameters['Content-Type'] = self._serialize.header("content_type", content_type, 'str')
    header_parameters['Accept'] = 'application/json'
    # Construct and send request
    body_content_kwargs = {}  # type: Dict[str, Any]
    body_content = self._serialize.body(_check_service_provider_availability_input, 'CheckServiceProviderAvailabilityInput')
    body_content_kwargs['content'] = body_content
    request = self._client.post(url, query_parameters, header_parameters, **body_content_kwargs)
    pipeline_response = self._client._pipeline.run(request, stream=False, **kwargs)
    response = pipeline_response.http_response
    if response.status_code not in [200]:
        map_error(status_code=response.status_code, response=response, error_map=error_map)
        error = self._deserialize(models.ErrorResponse, response)
        raise HttpResponseError(response=response, model=error, error_format=ARMErrorFormat)
    deserialized = self._deserialize('str', pipeline_response)
    if cls:
      return cls(pipeline_response, deserialized, {})
    return deserialized