input: Write a python function to generate a 10-character numeric password using the `random.sample` method.
  assert len(generate_password()) == 10
  assert generate_password().isdigit()
  assert generate_password() != generate_password()
output: import random
  import string
  
  def generate_password():
      return ''.join(random.sample(string.digits * 10, 10))