input: from typing import List
  
  def operations_to_equalize_median(nums: List[int], target_median: int) -> int:
      """
      Given an integer list nums and a non-negative integer target_median, you can adjust any number in nums by 1 in a single operation.
  
      Determine the minimum operations required to make the median of nums equal to target_median.
  
      The median of a list is the middle number when the list is sorted in ascending order. For lists with an even number of elements, choose the larger of the two middle numbers.
  
      Examples:
      >>> nums = [2,5,6,8,5], target_median = 4
      2
      >>> nums = [2,5,6,8,5], target_median = 7
      3
      >>> nums = [1,2,3,4,5,6], target_median = 4
      0
  
      Constraints:
      1 <= len(nums) <= 200,000
      1 <= nums[i] <= 1,000,000,000
      1 <= target_median <= 1,000,000,000
      """
output:     
      nums.sort()
      n = len(nums)
      if n % 2 == 1:
          median_index = n // 2
      else:
          median_index = n // 2
  
      current_median = nums[median_index]
      operations = abs(current_median - target_median)
      
      return operations
  