parameters: (self, path, times)
docstring: Change the access and modified times of a file.
  
      Args:
        path: (str) Path to the file.
        times: 2-tuple of numbers, of the form (atime, mtime) which is used to set
            the access and modified times, respectively. If None, file's access
            and modified times are set to the current time.
  
      Raises:
        TypeError: If anything other than integers is specified in passed tuple or
            number of elements in the tuple is not equal to 2.
docstring_summary: Change the access and modified times of a file.
docstring_tokens: Change the access and modified times of a file .
function: def utime(self, path, times):
      """Change the access and modified times of a file.
  
      Args:
        path: (str) Path to the file.
        times: 2-tuple of numbers, of the form (atime, mtime) which is used to set
            the access and modified times, respectively. If None, file's access
            and modified times are set to the current time.
  
      Raises:
        TypeError: If anything other than integers is specified in passed tuple or
            number of elements in the tuple is not equal to 2.
      """
      try:
        file_object = self.filesystem.ResolveObject(path)
      except IOError as io_error:
        if io_error.errno == errno.ENOENT:
          raise OSError(errno.ENOENT,
                        'No such file or directory in fake filesystem',
                        path)
        raise
      if times is None:
        file_object.st_atime = int(time.time())
        file_object.st_mtime = int(time.time())
      else:
        if len(times) != 2:
          raise TypeError('utime() arg 2 must be a tuple (atime, mtime)')
        for t in times:
          if not isinstance(t, (int, float)):
            raise TypeError('atime and mtime must be numbers')
  
        file_object.st_atime = times[0]
        file_object.st_mtime = times[1]
function_tokens: def utime ( self , path , times ) : try : file_object = self . filesystem . ResolveObject ( path ) except IOError as io_error : if io_error . errno == errno . ENOENT : raise OSError ( errno . ENOENT , 'No such file or directory in fake filesystem' , path ) raise if times is None : file_object . st_atime = int ( time . time ( ) ) file_object . st_mtime = int ( time . time ( ) ) else : if len ( times ) != 2 : raise TypeError ( 'utime() arg 2 must be a tuple (atime, mtime)' ) for t in times : if not isinstance ( t , ( int , float ) ) : raise TypeError ( 'atime and mtime must be numbers' ) file_object . st_atime = times [ 0 ] file_object . st_mtime = times [ 1 ]